Live data from Hacker News

PHP Sucks

evertpot.com

11–20 of 297 posts

Re: PHP Sucks

#11

Well 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/

Re: PHP Sucks

#12
post #6

Earlier 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.

That's right they'd probably be struggling to scale Ruby on Rails like Twitter who started 2 years after facebook.

Re: PHP Sucks

#14
post #2

Is the success thanks to PHP or in spite of PHP?

PHP has always had this hyper productivity about it. You just made a change in your editor, saved the file, and refreshed your browser for rapid feedback. It's always been like that.

It's also stateless - less rope to hang yourself with.

Many web programming environments started with the same simple CGI model, but eventually moved away chasing performance (for the computer), and leaving behind rapid feedback during development time.

hyperdev.com is nice, but it's still way more complicated than a single file PHP app.

Re: PHP Sucks

#15
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…

If you're doing it as a job, though, you probably end up having to work on a lot of legacy codebases with the old issues.

Re: PHP Sucks

#17
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…

Unfortunately, the issues aren't with "new" PHP, it's with the mountains of "old" PHP code that invariably finds its way into your project.

Also, having had to maintain a Wordpress site the past few months, may God have mercy on all daily Wordpress devs. I truly admire your stalwartness now in putting up with that.

Re: PHP Sucks

#18
post #10

"The 2016 StackOverflow Survey puts PHP developers as the least paid" - which is very unfair. I think PHP developers should actually get paid more as compensation for having to put up with PHP on a day-to-day basis, but that's just me unfortunately...

I've been doing primary PHP for almost ten years and people honestly just throw money at me to solve their problems. I really don't know how I make as much as I do; I hit the point where I made more than my parents combined a few years back and that made for a strange reflection point in my life.

Basically for all the decent PHP developers I've known in my life money has never been an issue.

Re: PHP Sucks

#19
post #7

I hate PHP too, but I write it almost every day at work. There's something to be said for how stable it is. I spent a large amount of my career doing .net development and deployed very rarely. It was a big day when I deployed. I would say to my wife, probably going to late tonight, we're deploying. Because something always went wrong when deploying. Here, I deploy every other morning. Usually, while my coffee is gett…

That sounds like more a company/environment issue than an issue with either language.

Re: PHP Sucks

#20

Every programming language sucks when you're bad at using it. This is the only and universal truth. Same for JS.

That's a pretty useless truth, who doesn't know that?

Many languages (like Go or Clojure) require you to learn quite a few concepts and exercise your mind in general. This automatically filters out incompetent programmers, and puts the rest in the right mindset.

Post reply on HN