Besides, learning a new language is fun and not that hard... They are all pretty much the same...
PHP Sucks
21–30 of 297 posts
Re: PHP Sucks
#22When you step outside these mini ecosystems and look at PHP as a vanilla tool to work or to use a proper micro/full framework you start to question why use PHP at all? One possibly acceptable framework, in my opinion, is Laravel. The problem is PHP outside of these mini ecosystems isn't nearly as popular. It looks like people migrate to an entire new language like Python, Ruby, Node, etc. If we're talking about sheer people hiring Ruby, Node and Python typically trump PHP every time and are using frameworks - not Drupal or WordPress. Granted there are custom PHP apps out there and some very good ones but they're not the norm.
I switched full-time to Python using Flask and Django. It's like a breath of fresh air. My 2 cents is if you're on the fence, figure out how to work on one project using this new language full-time. Then you can make a better decision.
Re: PHP Sucks
#23Earlier quoted context omitted.
Well.. people that don't know how to code but want to hack in a 1 line dynamic thingy.. where else would they turn? It build a pretty good community for newcomers. Now as to why a facebook would use it? mindblown
Facebook wouldn't use it if Facebook started two or three years after it did.
Re: PHP Sucks
#24I've built a static analysis tool for it, and it sort of feels like writing a CAD tool for lego bricks.
Re: PHP Sucks
#25Earlier quoted context omitted.
Well.. people that don't know how to code but want to hack in a 1 line dynamic thingy.. where else would they turn? It build a pretty good community for newcomers. Now as to why a facebook would use it? mindblown
Facebook wouldn't use it if Facebook started two or three years after it did.
Re: PHP Sucks
#26Still, PHP is so goddamn cheap it's not even funny. But I recognize everything the author is describing.
Re: PHP Sucks
#27Re: PHP Sucks
#28Well now you got a bunch of alternatives : Asp.net on linux, Go, Elixir, Python, Ruby,Java ... PHP kinda saved itself when it got Java like classes(which are fairly rigid thus allowed retrofitting "type safety" in PHP) which allowed engineers to write large and maintainable codebases (Symfony,Doctrine...). So again, no need to complain, go see your manager and try to convince him to try an alternative solution. Of co…
I wouldn't say it is. In asp.net, language is better engineered and will get in your way less often: https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
PHP get in your way only when your starting. You never make these "bad language mistakes" once you're experimented. And then you can write really clean code.
ASP, however, makes me vomit everytime I read a single line. COBOL is more readable !
Re: PHP Sucks
#29A bad workman always blames his tools...
Re: PHP Sucks
#30I used to feel the same way a lot of times, a shame it seems for being a PHP dev. Now, I don't care. I've been using it since 1999, and I use it to get stuff done. My customers and users of my applications don't care what it's written in. But, you should definitely learn more languages as a programmer. > And to anyone considering programming as a career, or trying to get into it... stay away from PHP. This is the par…
I totally agree with "But, you should definitely learn more languages as a programmer." In my current position I led a ground up build in Python/Django after 10 years of personally using PHP. I learned so much that I wanted to bring back to the PHP stack, only to find that the PHP community is already working on those things. It's really fun to see the parallels.
I am a strong believer in coding fundamentals and try to preach language agnosticism to my team. Yes there is often a right tool for the job, but in many cases the major platforms will be able to achieve the problem at hand – at least for typical problems.