Indeed, bad code is on the programmer not the language ( at least at the initial phase), there is a point as you learn more techniques, OOP, SOLID, PHP Unit, and good practices ,your code structure and refactoring gets better, you dont have to write spaguetti code unless you want to or are very new to programming,a programming language doesnt make you a good programmer from day 1. Some are easier to get started and thats where you see bad code spread everywhere, ex. Using deprecated mysql code instead of PDO or mysqli at least.
Indeed, bad code is on the programmer not the language ( at least at the initial phase), there is a point as you learn more techniques, OOP, SOLID, PHP Unit, and good practices ,your code structure and refactoring gets better, you dont have to write spaguetti code unless you want to or are very new to programming,a programming language doesnt make you a good programmer from day 1. Some are easier to get started and thats where you see bad code spread everywhere, ex. Using deprecated mysql code instead of PDO or mysqli at least.
Thank you Juan for you comment. You are totally right and I couldn't agree with you more.