11
aicha
3y

Stop hating PHP for no reason

Comments
  • 5
    God damn that bloody PHP.

    Sucker..
  • 10
    True 🙌
    Only hate devs who abuse it, because PHP allows even the most primitive life form (a WorstPress dev) to write complete turd-ridden code...

    I'm currently working on cleaning up a custom PHP "CMS" which was written by single braincell organisms over 8 years and is a COMPLETE mess of around 400'000 LOC and copied and modified to 5 subdomain websites without any use of packages.

    The difference in well written code and complete crap can be lightyears apart in PHP...
  • 12
    As a php dev, I hate it too some days.
    As a php dev, I love it to bytes.

    There's a fine line between a flexible language you can throw anything at and it'll probably work, and a flexible language you can throw any shit at and it still works - somehow.

    Unfortunately many php devs go for the latter and fuck the rest of us over.
  • 3
    I don't hate PHP. I strongly dislike WordPress "developers" that preach about it being god tier though.
  • 3
    My colleague told he hate PHP because it is an Israeli product.

    I was like "I beg your pardon?" *Confused.
  • 5
    PHP's rating correlates to version number for me*

    PHP 5.6 gets a 5.6 out of 10.

    PHP 7.4 gets a 7.4 out of 10.

    PHP 8.1 gets a 8.1 out of 10.

    By PHP v10 they'll probably have implemented generics types and ADTs, and deprecated arrays in favor of ext-ds.

    (*same is true for Python in my opinion. Py3 gets a 3/10)
  • 4
    Can I hate it for a reason then?
  • 0
    Death to PHP
  • 0
  • 1
    I give you, as one reason of many: paamiam nekudatiam.
    nuff said.
  • 1
    @magicMirror now give the exact use case you actually tripped that up.

    In 16 years I'm yet to see that be triggered in the wild without deliberation.
  • 0
    There are a lot of good reasons to hate it though.
    Most are because of the history of the language and therefore really damn hard to fix - but they are still valid reasons to hate PHP.

    All that quirks and annoyances - while i got over ten years of PHP experience and am still fine using it, i definitely wouldn't want to learn it as a new language today.
  • 0
    @magicMirror
    Do you mean the well-known Paamayim Nekudotayim?
  • 2
    @Oktokolo

    I struggle to find a better language as "great first language" though.

    I mean, I tell everyone "go learn Haskell and Rust", but that's just because I'm chaotic evil.

    Fullstack JS can certainly work for a beginner, but the JS toolchain and ecosystem isn't exactly a well organized ordeal either.

    Python can be easy to learn, but not easy to build a career on unless you have affinity with data science.

    I guess Kotlin for mobile app dev is pretty neat & with a quick return on investment.
  • 2
    PHP is cool. Wordpress is even okayish for a blog. Wordress... Devs... can fuck off
  • 2
    @bittersweet
    The first language doesn't have to be the language to build a career on.

    And Java, while definitely boring, is also a good first language just because of that. If they are into game making, C# seems to have prospered there somewhat.
    Python just gives the fastest results with the smoothest learning curve - if you don't hate duck typing (which normally isn't the case in beginners).

    Then there is TypeScript - making JavaScript sort of bearable.
    And suggesting Haskell, OCaml, F# to math freaks is fine too.
    Also, if there is patience and the will to learn, Rust might actually be good too.
  • 1
    @JASON
    ASP.net has historically been crippled by its tight bound to Microsoft IIS (probably the most-hated web server ever made).
    I assume that ASP.net can now be used on Linux with Nginx and Apache too - but it probably doesn't help its spread, that Microsoft still has a past and reputation there.

    .net is a pretty good eco system. I just wished, it wouldn't be under control of Microsoft...
Add Comment