Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial

Published: 23 July 2019
on channel: PixemWeb
907
41

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


On this page of the site you can watch the video online Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial with a duration of hours minute second in good quality, which was uploaded by the user PixemWeb 23 July 2019, share the link with friends and acquaintances, this video has already been watched 907 times on youtube and it was liked by 41 viewers. Enjoy your viewing!