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
Nesta página do site você pode assistir ao vídeo on-line Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário PixemWeb 23 Julho 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 907 vezes e gostou 41 espectadores. Boa visualização!