12

Ok, I see a lot of hate about PHP and I always wondered what is the experiences people have had with PHP to like or dislike it.

Personally, PHP was the first programming language I learnt and used, so it has it's special place in my heart.

I acknowledge that it has it's pros and cons (as any other programming language). My hypothesis is : People have used php in a project they didn't like or didn't turned out how they expected. Or they used php for something it wasn't ment for.

Do people hate php because it's a trend ? How many php haters have good reasons to hate it that much ?

I'm just curious to know the thoughts and experiences (good or bad) of other devs.

Comments
  • 5
    Things it's cool to hate on dR:

    • PHP
    •Windows
    • MicroSoft
    • Google
    • People
    • Apple

    I think that covers the most of it.
  • 1
    @Stuxnet I know that but I would like to think that some people have actual reasons to dislike it
  • 2
    Everyone is hating so do I mentality
  • 2
    @AdrienNini 🤷🏻‍♂️ Never used it. Would like to pick it up soon though. Hopefully I can get in that backed web dev class during the spring.
  • 0
    @gintko I acknowledge that php is pretty easy to pick up as I started to learn programming with php. I think that it was I good idea to start there because it gave me a taste of logic, object oriented paradigm in a fast and simple way.

    Then when I started other programming languages I was able to focus on more advanced things instead of learning everything from scratch.

    I now program in other languages than php but I still use it sometimes, knowing it's limitations.
  • 2
    @AdrienNini

    every language has is own flaws, that's ok. part of our job is to overcome them.

    my problem with php is not what sucks when misused. the problem is rather the amount of stuff that sucks by design, all the incoherence, the abuse of bad practices the stdlib promotes, lack of consistency at every level, globals everywhere, state mutation behind every corner, silent fails etc.

    there's no value i can extract from bad design.

    what really gets on my nerves tho is the inconsistency: signatures, globals, namings, return values of basic funcs etc. i may not like the rest, but i can live with it.
  • 4
    You will find 90% of people that bash php here don't even have developer jobs (that in itself should tell you everything you need to know)

    7% have a fave language (that's not php) so just bash everything that's no what they use.

    3% have valid reasons.

    *totally made up (but probably close) numbers.
  • 4
    Hating on stuff gives you a lot of ++ here. Bet many of those people dont even know php lol
  • 2
    I've developed a lot in PHP and from what I've seen the issue stems from the fact that PHP has a very low barrier to entry and allows you to easily churn out a bunch of disgusting nonsensical code that somehow works anyway. As a result, PHP is the language of choice for people who have no business programming and don't know WTF they are doing.

    There is another tier of PHP project that's just as good as in any other backend language, and by sheer numbers, there's more of them than there are good Ruby projects, good Node projects, etc. Around 80% of websites run on PHP, including sites like Facebook and Wikipedia. If people think that this kind of site is written in mid-90s script-kiddie garbage style, they're kidding themselves. But the *percentage* of good PHP projects is much lower than for other backend languages because they get drowned out by the sheer oceans full of crap.
  • 0
    @HollowKitty I started learning php because at the time I had learn to code websites and wanted to do some back end stuff. And at the noboby was talking about node and all the choice I had was PHP or Ruby. I took a look at both and finally choose PHP
  • 1
    PHP has remained relevant for over 20 years. You’re gonna pick up a bit of baggage during that time.

    But I think @musician really hit the nail on the head.
Add Comment