Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial

Опубликовано: 23 Июль 2019
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Bubble Sort Algorithm Refactored - Refactoring Code - PHP Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь PixemWeb 23 Июль 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 907 раз и оно понравилось 41 зрителям. Приятного просмотра!