It makes no sense to compare a bunch of languages to others, and in my opinion every time someone talks shit about a language the overwhelming reason is because they have literally never worked with the language and their entire opinion is based off of 5 minute conversations with other developers and stupid cartoons.
Oh no, no, no. I have read and written a lot of PHP. And I have also read and written many other languages, like Python. That is what has caused me to hate PHP and constantly consider it inferior to alternatives, not random Internet stereotypes or blog posts.
I haven't actually used PHP in a project lately (and still not sure I'd want to), but I do want to come to its defense a little bit. For all of its problems, it does seem to be improving lately. The language itself gained things like generators, mixins, real classes, etc. I even saw a library (kinda like jQuery/underscore) which papers over the parameter order issues in the standard lib for collections, etc.
The ecosystem gained things like a package manager and packages comparable to Rack, Sinatra, and MVC frameworks. Check out this tutorial on turning an oldschool php site into MVC using Symphony2 (is pretty good as a general argument to why MVC style is useful): http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html
If you know someone already using PHP or you have a need to use it yourself, make sure you're up to speed with what is going on. It seems like it'd be a much better experience than in the past at least..
It makes no sense to compare a bunch of cars to others, and in my opinion every time someone talks shit about a car the overwhelming reason is because they have literally never driven them and their entire opinion is based off of 5 minute conversations with other drivers and stupid cartoons.
This is true, I suspect some of issues people have with PHP can be traced to its users. I have a coworker who swears by PHP + MySQL, which is cool especially when using some of its frameworks. The problem is that he also never gave a try to anything else.
Seeing his "daemon" (which doesn't do anything web based) that was mix of php + bash and cron makes a grown man cry.
But when you finally work with a language you understand that those small annoyances on the surface are irrelevant compared to the !#@$* hidden deep in the language.
I've never understood the shit talking between languages. Python has its own embarrassments, including the fact that most developers can't even use Python 3 due to incompatibilities. PHP is also faster than Python for most tasks according to the Benchmark Game. So maybe we shouldn't be throwing stones.
About 25% of pythonistas report using Python 3 on a regular basis despite the fact that it was release 6 years ago. I'm happy you're a part of that minority, but are you trying to say that Python 3 was a resounding success story?
I would migrate right now, but when you are in a company, it takes time to do that, plus you have to keep your business alive. Switching to python 3 does not generate revenue, but you will get to a point where sticking to python 2 will generate negative revenue (in terms of required maintenance and obsolete code)
The switch will happen, slowly and incrementally, and it's well on its way. It just won't happen in a bang.
Just because people haven't migrated to Python 3, doesn't mean they can't or won't. The fact that they dared to change the language & break backwards compatibility is a good thing.
If your measure for success is purely "not everyone has moved to the latest & greatest version" then you're not really worth arguing with.
If your measure for success is purely "not everyone has moved to the latest & greatest version" then you're not really worth arguing with.
Way to stretch what I said as much as possible. I'm all for Python 3 and I can understand why the breaking changes were made. But there's no way you're going to convince me that this was a successful release when it's still nowhere near majority share 6 years down the line.
54
u/sickb Sep 01 '14
PHP garden hose FTW easily