• folkrav@lemmy.ca
    link
    fedilink
    arrow-up
    34
    arrow-down
    3
    ·
    1 year ago

    I’m as critical as the next guy of how overused and abused serverless/microservice architectures can be, but there’s disliking something and being completely disingenuous. Some of the comments every time the subject is even remotely mentioned fall into the latter. This time is not the exception lol

    • gkd@lemmy.mlOP
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      1 year ago

      I mean that’s generally the case with most tech. Just like the never ending PHP hate. Plenty of reasons to dislike or not use it but no reason to think it’s the scum of the earth.

      • lemmyingly@lemm.ee
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        On a tangent, I imagine PHP is still one of the most used backends. Wordpress uses PHP and I wouldn’t be surprised if 50% or more of the websites I visited are Wordpress sites. So I guess many others experience the same?

        • gkd@lemmy.mlOP
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          Very widely used still and well maintained. It’s been a good options since 7 came around. Most of the hate IMO comes from people who were working with PHP4/5 code or people who just saw PHP4/5 code and think that’s what the language is today.

        • railsdev@programming.dev
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          1 year ago

          Don’t wanna hate but maybe this will stir the pot: any time I go to a website and go “this is definitely Wordpress” I’m usually right (I check with the Webappalyzer extension).

          • dan@upvote.au
            link
            fedilink
            arrow-up
            5
            ·
            edit-2
            1 year ago

            It really depends on how much customization has gone into the site. TechCrunch, Wired, and TIME all use WordPress for example, but their theme is customized to the point where you can’t really tell that it’s WordPress. There are some ways to tell though, for example some of the larger sites are hosted by Automattic (these say “powered by WordPress VIP” in the footer), and /wp-admin usually still works to go to the login page.

            • railsdev@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              Yeah, that’s a fair point. I’ve been surprised to see a website is Wordpress from time to time.

              As far as /wp-admin goes, I know all about that! Any web server I’ve run is constantly overrun with bots trying to hack it. A lot of times I configure nginx to simply drop connections to any URL ending in .php or GZIP bomb.

        • folkrav@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Yeah, this stat is always a bit dubious sounding to me (how much of it is blogspam?), but WP is still much more prevalent than most devs seem to realize.

        • kautau@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          1 year ago

          Plus, Facebook literally forked PHP and still uses it, and is one of the most popular sites on the internet

          • dan@upvote.au
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Modern-day Hack (the language PHP uses) looks pretty different to PHP, and the runtime is a complete rewrite rather than a fork. HHVM uses C++ while PHP uses C.

            • kautau@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              That’s true, it would be more accurate to say that much of the web uses PHP or Hack, a PHP derivative. I think I was moreso thinking along the lines of the previous comments about the hatred for PHP being more of a meme at this point than a reality

      • folkrav@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Yeah… Indeed, our field is pretty prone to weird tribalism and jumping on bandwagons. Still, I dislike that just as much lol

        • gkd@lemmy.mlOP
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          For sure. People find a niche they like and then think that is the solution to any problem. Until, of course, some new shiny tech catches their eye and they try that out (or their favorite clickbait Medium writer comes out with an article about “Why you shouldn’t be using ____ anymore in 2023”). Then the love of their life gets thrown to the curb.

    • catacomb@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      I think it’s a maturity thing. You eventually see so many trends come and go, peaks and troughs of hype cycles and some developers (probably including yourself at least once!) overusing certain new tech.

      You eventually discover what works with current tech and then you can become healthily critical of anything new. You see it more for where it can fit and where it can’t.

      If you have something small and stateless then serverless is easy and, more importantly, scalable. It was a little easier to see its role once the hype fog had lifted and I had a problem to solve with it.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        see so many trends come and go

        It’s interesting how things are cyclical. Serverless functions remind me of cgi-bin scripts.

        • catacomb@beehaw.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Yep, it’s usually an existing idea with progression in a few areas. You could definitely achieve serverless with a cluster of servers hosting the same scripts in cgi-bin and I think that context helps to put it into perspective.

          • dan@upvote.au
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            I feel like I should start a “serverless” startup that’s just Apache running in a Kubernetes cluster with a bunch of cgi-bin scripts in a Ceph cluster. Boom, serverless with high availability.

            • folkrav@lemmy.ca
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              If you only focus on the concept of a serverless function and forego 99% of the other stuff, yeah 😛

      • railsdev@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        The trends coming and going is personally what makes me more tribal. Specifically I’m thinking of the JavaScript/Node ecosystem from the perspective of a Ruby on Rails developer.

        Thankfully these days we have Hotwire and it’s possible to completely rip out all the Node trash we had to stuff into our containers.