MK254
JF-Expert Member
- May 11, 2013
- 33,569
- 53,583
I think most people loathe PHP because it was initially poorly designed (if not designed at all), plus it allowed for so many bad practices and thus, so many early PHP adopters ( still many more today) were/are bad programmers because of this. Many PHP programmers i have come across don't even know how to test their code, version control was/is still to some a foreign idea, I know a PHP guy who's very good with it but doesn't even use git, so he's a maintaining a Huge Monolith of a codebase that's not Versioned and he's making money off it. Of course he'll always give you an example of facebook, yahoo, and wikipedia, sometimes it feels that the worst part about PHP is that it actually works whether you do it right or wrong. Yes most of these PHP guys adjusted to challenges that was posed by much cooler languages like Ruby and Python and became good programmers but there's more bad PHP programmers than the good ones, so yeah, that's one of the reasons most programmers don't like php.
You can't hate a tool for allowing you to use it badly. It must be noted that, programming is not just a career, but a way of life, a lifestyle, you've to be passionate about it and not the type that must be enforced by a tool to become a good programmer.
You've to be the type that spends long hours learning new ways of making your programming skills better, making use of every known concept out there. Ensuring every line of code you write can be useful to others, and more importantly, can make sense to you one year later.
Making use of tools like PHPUnit for unit testing through the development cycle, taking precautions and ensuring security (develop defensively), incorporate helpful designing concepts such as DRY and ORM, Indent your code properly and use meaningful naming conventions, profile your code with tools such xdebug.....
I can go on and on, but my point is simply about taking charge as the developer, being mature and disciplined enough to be relied upon. Language/tool haters are just lazy-bums who find solace by blaming anything, there are also the so called "purists" who pretends to hate Python simply because it allows dynamic typing as opposed to "true languages" that enforces static typing such C and C++.