4 ms·
> If you're programming in PHP, you're not running around talking about "convention over configuration" giving talks, or trying to make your code beautiful. It'
by toast0 10y ago
> If you're programming in PHP, you're not running around talking about "convention over configuration" giving talks, or trying to make your code beautiful. It's a garbage language, and you know it.
This is exactly right. The right philosophy for PHP is to embrace the garbage. When you're done with a request, and have spit out all the HTML to the client, the server is going to throw everything away. So don't build a beautiful object tree to describe everything, just do the minimum amount of work to take the garbage input and generate the garbage output, and be done. Don't worry too much about your code being beautiful, because it lives in a dump.
This may sound negative, but working in a dump means you don't have to worry about appearances while you do what you came to do. You can always take a shower on the way out :)
- userbinator 10y agoIndeed it's very much a "worse is better" philosophy throughout.
- eyelidlessness 10y agoNot really. It's just a "worse is" philosophy.
- hondo77 10y agoIf I wanted to embrace garbage every day I would have skipped college and went straight to being a bum. Life is too short to "embrace the garbage" every day.
- ddw 10y agoThis. Developer happiness matters.
- lost953 10y agoNot nearly so much as customer happiness does.
- collyw 10y agoDecent developers don't want to work on shit code bases all day long. The application will suffer in the long run.
- OOPMan 10y agoAgreed. I'm not going to make any customers happy working on a product if I hate the codebase and the language I'm working in so much I just DGAF.
- oblio 10y agoThis looks like a lie. For the right amount of money, people will work for long periods of time on crap code bases.
- vancouverwill 10y agoNot sure about that. Most companies biggest problem is finding talent employees and most experienced engineers will not want to work on a Php codebase especially one full of technical debt due to the variety of other options in languages which compile and miss out on a huge percentage of php problems before you even run basic tests.
- y4mi 10y agoi think thats wrong. its mostly "not nearly as much as money does". and money is directly correlated to customer happiness
- pc86 10y agoTo be fair, you could have also skipped college and become a PHP developer.
- arpa 10y agoTo be honest, the way you put it (/i read it/) sounds like becoming a bum is a better alternative.