DEV Community

Discussion on: 11 Mistakes Which Every PHP Developer Should Avoid While Programming

Collapse
 
dennistobar profile image
Dennis Tobar

Thanks for sharing your article.

I could add the "not learn basics" paragraph: many programmers learn to code in PHP using old tutorials with bad practices or just learn the framework without the basic usage of data structures, like the old-good array and its functions.

If a programmer doesn't follow a standard to code, he is creating a "beautiful mess" for the next new programmer and the legacy code will be a true "walking dead" around the system/website. One of the first things to do in a new project is setting this standar with manual (old fashioned way) or setup an automatic tool (Prettier or similar) to follow standards.