Live data from Hacker News

PHP Sucks

evertpot.com

71–80 of 297 posts

Re: PHP Sucks

#71
post #27

"There are only two kinds of languages: the ones people complain about and the ones nobody uses" -- Bjarne Stroustrup

I think every language has somebody complaining about it anyway.

But PHP & C++ get more complaining than the others, at least where I hang out. So good quote by Stroustrup.

Re: PHP Sucks

#72
PHP is awesome for Stage 2 level projects in this model: http://devblog.procore.com/dev/evolution-of-software-applica...

Once you need a framework and the complexity that goes with it, PHP starts to suck. It lacks the behavior and tools to nicely manage complexity beyond a pile of files.

But when what you need is a pile of files, PHP is awesome.

Re: PHP Sucks

#73

Earlier quoted context omitted.

I used to like Laravel, but lately it feels so enterprisy. There is a lot of boilerplate in Laravel today and it was changing too fast for me to keep up with it.

The more I used Laravel the less I liked it. I like Laravel Elixir (the npm package) and Eloquent (the ORM). Laravel itself is overly complex and the learning curve keeps getting higher. I'm much happier with Slim 3

That's what I do as well. I mix and match components such as eloquent, guzzle, pux router, twig and stay away from monolithic frameworks.

Re: PHP Sucks

#74
post #70

Earlier quoted context omitted.

Running C# (.NET Core) on DigitalOcean $5/month droplet too much for people?

PHP is also cheap to write (in theory; the programmers are cheaper).

Those programmers is where the reputation comes from.

Re: PHP Sucks

#75

"The problem I have with PHP has nothing to do with the language, it’s its reputation. I can’t count the times I’ve started a conversation with a programmer who upon finding out I primarily do PHP got awkward with me." The HN post title is sure helping with the reputation.

The HN post title is the same as the author's original title.

Re: PHP Sucks

#76
"Developers who more-so live in the Java-dominant corporate bubble"

That's me but ... I've known quite a few good PHP developers like this author. I've also seen horrible, horrible things - things that other languages and frameworks simply won't let you do. A language that gives you a lot of slack also gives you more opportunity to hang yourself. There's nothing that says you have to hang yourself.

As mentioned, the barrier to entry is low with PHP. The combination of a "loose" language and a newbie programmer is dangerous. And didn't all of us, as newbs, think we were done when it seemed to work properly? So the correct statement is not that PHP sucks, it's that many write sucky PHP. I'd rather see everyone aspire to not sucking (and certainly not hanging themselves) regardless of the language they use.

NOTE: I wrote a lot of PHP code in the late '90s and reworked part of a project in 2005/2006 so I obviously don't know anything about the current state of PHP. I'm not against it - I simply choose not to use it (at least at the moment).

Re: PHP Sucks

#78
I wouldn't ever recommend a beginner learn PHP. I would definitely recommend a beginner learn Laravel. It has tremendously awesome free or inexpensive learning materials, great documentation, great community support, and comes out of the box with everything you would need for 95% of websites.

Re: PHP Sucks

#79
post #8

I 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 also disagree strongly with that piece of advice. Even though, as others have pointed out, if you become a PHP developer you're going to have to deal with nasty legacy code; there's nasty code written in Ruby, Java, Python, etc. too. It's just nasty in a different way.

PHP is actually the language I do recommend people learn if they're interested in web development (obviously along with JavaScript), because PHP developers are in high demand. PHP developers can always find work, precisely because there is so much PHP out there.

Re: PHP Sucks

#80
This post hits it on the head. I had been a 12+ year PHP developer and a little less than 2 years ago I had left PHP for Node.js because I was sick of constantly defending my competence to people who used PHP for 15 minutes back in PHP4 days or had to fiddle with a crappy WordPress theme/plugin and completely dismissed the whole ecosystem.
Post reply on HN