Let's Refactor our Bubble Sort Algorithm from the Previous Video so we can improve the performance of our PHP Code.
This is going to be done in PHP just like the last video and is part of a playlist dedicated to learning algorithms which will greatly improve your understanding of how to code.
Code for both the first version and our improved version can be found here:
https://www.pixemweb.com/blog/bubble-...
Basic Bubble Sort Algorithm Video:
• Bubble Sort Algorithm Tutorial - PHP
The Bubble Sort Algorithm is a very basic, inefficient algorithm that literally goes through every element in an array and determines if it needs to be sorted or not. While this might not be a big deal with smaller lists, once your array or list gets to be large, the performance significantly decreases.
Refactoring your code is an important part of your workflow. Reviewing and Refactoring code will ensure that you improve your code and make it as efficient and secure as possible.
You can learn a lot by refactoring your code and you can also learn a lot about how to code when working with algorithms.
As a web developer, algorithms might not be at the top of your to learn list, but as I mentioned in the previous video, you will benefit from learning how to best structure your code which is a skill that will separate you from other coders.
Writing clean code that's easy to maintain is a vital skill that coders should learn from the beginning.
#bubblesort #algorithm #php
Auf dieser Seite können Sie das Online-Video Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer PixemWeb 23 Juli 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 907 Mal angesehen und es wurde von 41 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!