15
baewulf
5y

Why the php hate?

Just started learning it today and it seems really powerful and pretty simple, I’m excited to learn more..

Comments
  • 7
    Most of it comes from wordpress...

    In all seriousness, PHP is pretty good nowadays. With the classes and hints PHP 7 has, it is pretty good.
    Most people who hate it used in like 2008, and back then it was not so great.

    It's only downside is you can't really do concurrent code, neither is it compiled so the performance in comparison to something like c or java is a bit worse.

    And there are a lot of people who read this article: https://eev.ee/blog/2012/...
  • 6
    Also, PHP is easy in a deceiving way. It's totally easy to string something together that works, but has gaping security holes. Just look at the shitty WordPress plugin ecosystem.

    On top of that, PHP attracts noobs while experienced devs rather leave, and that makes the ecosystem even shittier.
  • 4
    Personally, i wouldnt program any backend code with anything other than php it just feels it fits perfectly for what I want. Enjoy it and ignore that stupid hate it gets. Devs like to be all high and mighty by shitting on every language other than the one they like to the point it became a joke.
  • 2
    Because they are glorifying those JS frameworks
  • 2
    Sure, PHP7 is good.
  • 3
    I started using PHP v4 way back in 2007/2008. It was the most practical language to use for creating dynamic web pages at the time, considering the alternatives.

    PHP docs were the best; alongside function descriptions there wer practical examples with comments from the community forum. All searchable and downloadable as a handy .chm :) Still better than MS docs today IMHO. Keep in mind, SO was still not around.

    I don't work with PHP that much today, but it does bring good memories.

    Regarding PHPs bad rep, don't trust hipster dev opinions, and don't blame the tool for bad handy work.
  • 3
    @hajoe hey old timer, not many people around these parts from the good old days 😎

    @filvia-sederici
    PHP has always been a source of hatred. Just ignore it. Most of the hate has to do with how immature of a language it was compared to the likes of Java and ASP back in the php3/php4 days.

    It has matured well since then (circa early 2000’s) php4 was a unpleasant mess at the time but if you took the time to learn it and it’s wrong doings it could, and still can be used for virtually anything.

    People have always complained about JavaScript just as much, yet here we are with NodeJS.... and it’s crowd, I still don’t like it personally.
  • 1
    I like PHP more than Node.js. I might be biased though, since I learned PHP first.
  • 1
    Can't wait for 7.4! Typed properties and better performance with preloading 😍
  • 1
    @Quirinus I agree, I feel like nodejs is way messier than php (haven't tried it with ts yet)

    But then again, php is just the interpreted language while node is an entire (web)server
Add Comment