• _cnt0@lemmy.villa-straylight.social
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    I’ve seen people, lead and principal engineers, who refuse to learn modern JS, insisting that since it was bad in 2006 its bad today.

    It’s still bad, though. That’s not the reason why, but it still is. All the frameworks and things like TypeScript try to work around and hide the uglyness and stupidity of JavaScript, but they neither remove nor fix it. The way HTML was initially designed is the exact opposite of how it is used. It was intended to present data in a standardized way and leave the rendering and styling to the client application. People tried to create pixel-perfect designs with it. The entire resulting technology stack was created by idiots for idiots. And JavaScript is consistent in the misguidedness of the endeavor. All the marketing talk about platform independence is bullshit. It is easier to write platform independent GUI applications in C than in HTML + CSS + JavaScript. All the frameworks and languages transpiling to JavaScript trying to belie that just lead to a breeding ground of incompetent GUI developers doing esotheric coding (“doing it the way it is done” while understanding zilch about the fundament). The resulting developers are useless outside of their steaming pile of web GUI shit. The least worse of them are the ones promoting and perpetuating this failed technology stack by adding further layers of abstraction to try and hide that it is build on and from shit, creating even more esoteric developers in the process - by idiots, for idiots. Web GUI developers are paid less than any other branch of developers and it is completely justified.

    • argv_minus_one@beehaw.org
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      It is easier to write platform independent GUI applications in C than in HTML + CSS + JavaScript.

      Um, what? There are very few GUI toolkits targeting both desktops and phones, and none of them are reasonably usable from C.

      • _cnt0@lemmy.villa-straylight.social
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        You forgot to read the very small fineprint after the rant hyperbole: *) true for desktop applications. You could go with C++ and QT. Though, writing C++ code is never easy/fun (still better than JavaScript, though). Any argument about natively compiled multi platform GUI applications regarding mobile is moot either way for multiple reasons. The angle I’m going to push here is: Everybody and his mother tries to push their custom iOS and Android apps, relegating web sites to the desktop. Any multi platform GUI toolkit with a cross-compilable language will give you twice the functionality in half the development time over HTML+CSS+JavaScript. And don’t get me wrong: I’m not really suggesting that websites have no place. And there are good reasons to want websites. I’m trying to paint a picture what a horrible absolute clusterfuck the web GUI technology stack is.

        • rambaroo@beehaw.org
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          1 year ago

          Any multi platform GUI toolkit with a cross-compilable language will give you twice the functionality in half the development time over HTML+CSS+JavaScript.

          Hundreds of companies have tried to solve this exact problem for years and already did the cost/benefit analysis. It turns out that writing almost all of your code exactly once is cheaper than doing it in the multiple stacks that would be required with whatever your dream architecture is. They are not idiots just because you want them to be.

          You sound like someone with zero practical experience in this area who just wants to rant about code purity. The rest of us are trying to get shit done while you pine for a perfect technology stack that will never exist.

          • _cnt0@lemmy.villa-straylight.social
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Hundreds of companies have tried to solve this exact problem for years and already did the cost/benefit analysis. It turns out that writing almost all of your code exactly once is cheaper than doing it in the multiple stacks that would be required with whatever your dream architecture is.

            Right … that must be why no website ever is trying push their mobile app on me, and why all complex software for developing, video and graphics editing, CAD, … is implemented on web stacks.

            You sound like someone with zero practical experience in this area […]

            You sound like someone who’s replacable by ChatGPT.

            […] who just wants to rant about code purity.

            At least you got that (partially) right.

            The rest of us are trying to get shit done […]

            Exactly my point: all you get done in web stacks is shit. And the trying is spot on: what do you really expect to come out the other end when the input is shit?

            […] while you pine for a perfect technology stack that will never exist.

            I don’t even have to do that, though improvements never hurt. Just take any C-Style language other than JavaScript or any other dynamically typed abomination of a scripting language, and you’re bound to be happier and more productive.

        • argv_minus_one@beehaw.org
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          You forgot to read the very small fineprint after the rant hyperbole: *) true for desktop applications.

          Ignoring phones in 2023 is patent nonsense.

          You could go with C++ and QT. Though, writing C++ code is never easy/fun

          It’s also ludicrously expensive, so as far as I’m concerned, it doesn’t exist.

          Everybody and his mother tries to push their custom iOS and Android apps, relegating web sites to the desktop.

          Madness. I’m not going to develop and maintain three completely different versions of the same app in perpetuity.

          Any multi platform GUI toolkit with a cross-compilable language will give you twice the functionality in half the development time over HTML+CSS+JavaScript.

          Maybe it would if one existed.

          I’m trying to paint a picture what a horrible absolute clusterfuck the web GUI technology stack is.

          I don’t disagree, but I also don’t see any viable alternative.

          • _cnt0@lemmy.villa-straylight.social
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Little add-on re viable alternative: Silverlight could have been nice, hadn’t Microsoft fucked it up and implemented it as a Windows-only ActiveX control.

            With .NET Core/.NET 5+ being open source and platform independent, that idea/concept could be revisited. A trimmed down .NET framework in a sandbox with proper DOM integration would be a massive upgrade over all the JavaScript garbage.

    • rambaroo@beehaw.org
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      Lol so you’re one of the devs the author is talking about. Imagine getting this worked up over a topic you clearly don’t understand. “Failed technology stack” – that’s right everyone, the most widely used stack on the planet is a failure because this guy doesn’t like javascript. Everyone else in the world is obviously a stupid moron for not seeing things his way.

      If you program in anything other than machine code you are an idiot. Remember that next time you use a failed abstraction like C.

      Can’t believe this nonsense actually got upvoted. You never even identify any real issues with modern JS or HTML. It’s just a bunch of run-on whining. “HTML was meant to provide a standardized way for presenting data” – lol so literally how it’s still used today.

      • _cnt0@lemmy.villa-straylight.social
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        At least C has a working equals operator. Go on, tell me about ===, invite the ridicule. I bet I know more about JavaScript than you do. I hate it because I am intimately familiar with it.

        console.log(null==0)
        console.log(null>0)
        console.log(null>=0)
        
        console.log(0==[])
        console.log(0=='0')
        console.log('0'==[])
        
        // no equality comparison, but that shit is funny
        console.log("2"+"2"-"2")
        

        Any proper programming language wouldn’t even compile any of that nonsense.

        And something being widespread doesn’t mean it’s either right or good - look at religions.