by awestroke · 13y ago · 0 comments
Imagine the effects if the mainstream web development focus would shift from PHP to some more thought-through language(+framework?). The PHP-development community produces some really great things, imagine all that effort expressed through better and more efficient tools!
Too late, you already did. And yes we should. PHP is just as good as Ruby or Python.
I don't know if you're deliberately making a disgusting lie, a blatant troll or just lack knowledge. Either way, I wish to state, as someone who has several years of actual professional experience of all three, in very strong terms that this comment is nowhere near the truth.
But about the parent's question: I believe that no learning is ever wasted, so go ahead and learn PHP, but it might be a good idea to realize that it's quite unique in how badly designed it is, and that the rest of the programming world does many things differently.
It was his opinion, not a fact. Just like this is your opinion and NOT fact.
Well, if that is your opinion, I do apologize.
And good luck with handling non ascii data with the standard library.
PHP would need a highly deprecating major version to clean all the rubbish, but it will never happen (see the history of PHP 6.0)
disclaimer: I'm a PHP developer (during the day, but at night...)
Python is useful for a lot more than web scripting, and so is Ruby.
For example, if you wanted to add real-time connectivity to your app using something like Socket.IO (http://socket.io/) you're basically out of luck in the PHP world (http://stackoverflow.com/questions/6398887/using-php-with-so...), you'll have to do it in a different language.
I think people who invest a lot of time in learning PHP are getting less bang for their buck than they would learning Ruby or Python where their knowledge can be applied to broader disciplines.
Do you need to process audio files? Maybe write a quick script to scaffold some Objective-C or Java code for your mobile app? What about writing a persistent process that watches for files on your network, processes them and uploads them to Dropbox?
All these things are really easy with Ruby, Python, or even NodeJS, you just glue together a few off the shelf modules and you're basically done. PHP is way out of its element in these sorts of situations.
PHP comes with a CLI SAPI that allows you to use it on the command line just like python, ruby etc and has done so since version 4.2.0 (released April 2002). I've written and maintained many cli tools and deamons in PHP over the last 11 years with great success so please get your facts straight before perpetuating falsehoods .. sorry, but I'm getting pretty sick of the ill-informed PHP bashing going on round these parts.
I think you're misunderstanding what I'm saying.