I was perusing Quora today and came across this question:
“Why do so many programmers say PHP is a bad language?”
Of course, that ruffled ol’ Johnny’s jimmies, so I clicked to so see some of the answers and this one made me laugh:
“They’re the same people that want to ban bread knives from being sold based on the premise that they’re murder weapons.
“As the saying goes – ‘PHP is so easy to learn that any idiot can use it. Far too many do.’ You can write terrible, horrible code in every programming language out there. In hard to learn higher level languages like C++, your program will crash or simply not work. In PHP, it will mostly work and allow you to hack along until it does.
“Before PHP5 it was definitely a bad language. PHP5 cleaned up most of the really bad stuff. PHP7 fixed some more fundamental issues, and is really honestly a good mature development environment. For legacy B/C reasons a lot of weird shit is still around, like the infamous string type juggling (1+”1e2f” equals 101…), but trying so actually gives notices these days and is on the way to official deprecation.
“If you use a professional, mature and high quality framework like Symfony you’ll be surprised at the elegant, powerful, clean and highly performant code you can write in PHP that will pass every single software engineering quality test you can think of.”
I mean, look.
Do you blame the wrench if a car is built like s!@#?
The hammer, if a house falls apart in a year?
The gun, if a psychopath shoots up– oh wait…
Point is, PHP is a tool… just like any other language. A screwdriver, a hammer a wrench. Which one you use depends on the job. And anyone who thinks PHP is a double-clawed hammer… is the moron, IMO.
Trick is… knowing how to use the tool properly.
(That’s what sh— dammit, there I go again.)
The truth on all this language war stuff…
Is PHP7 officially put this all to bed.
It’s a mature language, at this point.
All the naysayers are just crying at ghosts at this point.
Anyway, if you want go beyond the “script kiddie” stuff and learn how to build mature, professional PHP applications that will allow you to write your own check when it comes to your web development career…
My PHP curriculum on SkillShare can help you get there:
- Beginner’s Guide to PHP (Start here if you’re new)
- Build Professional Applications With Object-Oriented Programming
- Secure, Session-Based Login Script
- PHP Blogging Application
- HTML Form to MySQL & Email
And, you can get access for nothing. Deets at the links above.
If you wanna make PHP your thing, that’s how to do it, IMHO.
Now, it’s just up to you to grind it out.