3 ms·
The thing that burns me the most about PHP is a worryingly large number of people using PHP think it's perfectly acceptable to start a project by opening Notepa
by astrodust 13y ago
The thing that burns me the most about PHP is a worryingly large number of people using PHP think it's perfectly acceptable to start a project by opening Notepad and typing in "<?php $db = mysql_connect(".
From there on it's only misery. It's like new developers start out using techniques that should've died in the 1990s and the only reason they do this is because they don't know any better.
In the Ruby world you'd have to be living under a rock to not know about Rails, and the same goes for Python with Django. You're developing a web app? You use a framework. Period.
Yet in PHP land you have people who are otherwise competent developers that just don't know how to develop a web application. Maybe they've come from Java and they think that writing PHP like that is clunky, but hey, everyone else is doing it so who's to say otherwise, right?
If you like PHP and want to help, call people out when they're doing it wrong. Give them guidance on how to do it properly. Don't just look away and pretend you didn't see them flailing away on re-inventing the wheel.
I'm not even a PHP person but I've been pretty vigilant on the MySQL section of Stack Overflow about petitioning against the use of the deprecated mysql_query extension, pushing people towards PDO or ORMs, and about how important SQL escaping is. This feels like Doctors Without Borders where I'm explaining to a community that boiling water to kill parasites is important.
The PHP world is in really bad shape if people don't even know the basics.