The PHP repugnance fallacyFri, Oct 31, 2014
Hey, it’s 2014, wake up. And you PHP developer, don’t be ashamed, stand straight and be proud and back up your everyday language.
… ok, sorry, that was maybee a bit strong …
There is nuance to be made with that statement:
buuut, it has a bad reputation beacuse of few things, the language has not evolved well and has no real future plans, people don’t upgrade to the latest version fast, a lot of opensource codebases support legacy features / don’t adopt new syntax but more importantly, 90% of google searches related to PHP yields decade old answers with bad practices leading beginners in writing aweful code.
I agree that few years ago PHP was not looking good but nowadays you can build about any applications as you would in Ruby, Python or Node.js.
- There is a package manager: https://getcomposer.org/
- Here you can browse availble packages: https://packagist.org/
- There is a Rails/Django equivalent: http://laravel.com/
- There is even language alternatives if you are starving for staticly typed code: http://hacklang.org/
- There is good testing libraries: https://phpunit.de/
- Nice Jinja like templating languages: http://twig.sensiolabs.org/
- An asset manager: https://github.com/kriswallsmith/assetic
- A good Redis library: https://github.com/nrk/predis
- Nice and updated literature on https://leanpub.com/ and http://phptherightway.com/
That’s it! End of rant. Have a great day, enjoy your good coffee/tea, think about other prejudices.