7
watzon
7y

Comment with your feelings about PHP. Love it? Hate it? I want to know.

Comments
  • 3
    It makes me feel icky xp
  • 1
    Love it. Gets shit done.
  • 4
    it’s a love / hate relationship.

    love how easy it is to do virtually anything and deploy in no time at all.

    hate how easy it is to do something completely wrong and it appears to work anyway, that and the crazy inconsistent function names and argument passing.
  • 1
    Anything below 5.6.. Fuck no, be gone. Shoo.

    Anything above 7.0,
    Eh, Not too shabby. Matey.

    I'm not entirely sure if love the new types and hints, yet.
    I'm looking forward to shorthand closures fn($args) => { // logic }

    Still some inconsistencies with key, value likewise with input callback.
    Which can be quite a pita.

    All in all on a scale from 1 to 10,
    love: 7/10, hate: 4/10
  • 0
    PHP powers the majority of the web, we are now on PHP7. It's not going away any time soon. I'm not a natural coder, but PHP makes sense to me. I fucking hate Wordpress though ( for many reasons).
  • 2
    It is a ok-ish programming language. Not the best for coding standards and performances, but easy to pick up and to deploy everywhere.
    I don't love it to bits but I think it has its purpose and use cases, and I don't like people who just say "derp it sucks go js blabla" they are fan boy and posers. Every programming language is a good tool designed to solve a set of problems, and php is just one of them.
  • 0
    Luvin' it
  • 3
    hate it for the fact that I have to use $ for variables. Like what the fuck? That slows down code writing a lot. Especially when you write PHP + something else, and either end up writing

    for(i=0;i<....

    in PHP, or

    for($i=0...

    in another language.

    PHP is dirty.

    Oh, and don't get me started on their overly zealous usage of global functions. Get your tongue twisted.

    But, it's well supported everywhere, and since PHP7, it has become quite decent in terms of speed. And, as language features go, PHP is quite advanced.
    I still try to avoid it if I can justify it.
  • 0
    PHP is a fractal of bad design.
    Google that.
  • 0
    Love hate relationship indeed
  • 1
    @Ashkin I could write an article like that about most languages though.
  • 1
    Any language that isn't JavaScript is not worth the time
  • 1
    @nicholai Them are fighting words!
  • 0
    @bittersweet Its always interesting to have a love affair with ES, when everyone seems to hate your lover.

    It's like one of those requited but impossible love stories. Police is chasing us; "Stop right there! You are under arrest for too many goddamn frameworks"
    Family says she's "too loose" but I disagree :(
  • 0
    "I don't talks about feelings, Alfred. I don't have any, I've never seen one. I'm a night-stalking, crime-fighting vigilante, and a heavy metal rapping machine. I don't feel anything emotionally, except for rage. 24/7, 365, at a million percent. And if you think that there's something behind that, then you're crazy."
  • 2
    PHP development on a standard lamp stack is an anti-pattern. Even if properly using composer or other dependency management systems, it's a flaky language to build off of. It teaches bad practices with absolutely no standards. PHP7's speed is quite appealing, but my primary concern with modern web development is; if you're going to write JavaScript anyways, you may as well just use it on the server as well.

    Of course, I understand that in a multi service architecture you're going to be using a plethora of different languages on different systems, but it still doesn't excuse having to write in an extra language if not necessary.

    Needless to say, if you're just building an API; you're better off learning NodeJS or GoLang if you're after performance.

    Finally, I don't hate PHP, I just feel it has no place in modern web development. I can go on for days, but I also recognize great frameworks like Symfony and Laravel that try and modernize PHP dev workflow.
  • 0
    For a simple webpage that lets students log in via college LDAP and display their new allotted rooms for the year: Definitely PHP.
    For the internship portal of college: Rails/Django/MEAN before even thinking of PHP.
  • 0
    Easy, short, clear.
    Love it.
  • 1
    @bittersweet if you read it, you know you cannot.

    All languages have problems, but most at least make sense within themselves. Wtf is the "(int)" typecast doing in a language that doesn't have ints? Why does indexOf return zero on both position zero and on error? Why do arbitrary internal functions produce unrecoverable exceptions? What's the deal with php.ini, ini_set, etc? There are _so_ many problems with the language that I cannot understand how anyone can say it's good. Useful, sure. But definitely awful.
  • 0
    It was my first server-side language. So easy to integrate coming from the basics (HTML CSS JS). I wrote up a blog application that saved and pulled posts in a database, all controls were in their own html files (modules nowadays) pulled in dynamically with include statements... the code was probably insecure and messy but I could accomplish so much at a young age. It was genuinely fun. And not that hard.

    Years later, I wrote a for loop in python. And then looked at php. And then I realized why everyone hates it so much.
  • 0
    @Ashkin Oh its certainly in a class of its own... But JS scores high on the shitlist as well.

    I will always love Python, but there's some weird consistency issues there as well.

    Then there's a bunch of languages which have features omissions, limits and small flaws but are indeed more or less consistent.

    Although lately I feel like all languages are weaker versions of either Rust or Haskell.

    It's funny though: It's exactly the opposite of industry prevalence — possibly because the "better" a language is, the harder it becomes to quickly do useful things with it.

    See this video: https://youtu.be/iSmkqocn0oQ
  • 1
    Yeah, it is my favorite language)
Add Comment