• ScrewdriverFactoryFactoryProvider [they/them]@hexbear.net
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    The only thing worse than starting a PHP project in 2021 is starting a PHP project any time before 2021. I work in PHP at work and the code we’re writing today is night and day compared to the deranged shit that’s in some of our legacy services. And compared to the JavaScript framework hype train (or maintaining ancient jQuery) I can definitely see why someone would start a greenfield PHP+HTMX project today.

    That said, I’ve been starting hobby projects with Go+HTMX for about a month and that’s been pretty fun

    • daisy [he/him, comrade/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      That said, I’ve been starting hobby projects with Go+HTMX for about a month and that’s been pretty fun

      Amen to that! Go is easily my favourite language for writing web backends. 95% of what one needs for the average web project is part of the standard library, including that really nice automatically-multithreaded web server. And the html templating is wonderful to work with. Most of what I write has to work javascript-free in a default-settings Tor browser. Go’s templating makes it really simple to do server-side rendering of complex pages.

      A nice bonus is that the very C-like syntax meshes well with my grew-up-on-C brain. For me PHP’s syntax is downright Lovecraftian.