• ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    6 hours ago

    I moved from Visual Basic (3 no less!) to C because I needed to optimize the performance of a software synthesis (like, sound synthesis) application I was developing at the time (mid-1990s). It boggles my mind to this day how much fucking work you had to do just to create a simple window in C. It instantly made clear why UIs at the time were so bad and I went back to Visual Basic for the UI with a compiled C DLL to do the heavy lifting.

    There’s no excuse for why UIs are still so bad today.

    • lordbritishbusiness@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      5 hours ago

      The “excuse” is more or less the 20 or so replacements that have been made and died. I think Microsoft alone is responsible for 5 over the life of Windows.

      We’ve more or less kinda settled on HTML only because it’s already wide spread. But it’s not perfect so more standards for the standards pile. Don’t worry, react will end up buried by the next thing on the pile eventually.

      • ChickenLadyLovesLife@lemmy.world
        link
        fedilink
        English
        arrow-up
        12
        ·
        5 hours ago

        We’ve more or less kinda settled on HTML

        It’s funny, one of the modern UI glitches that I hate the most is when a long bit of text is just truncated with ellipses instead of the whole thing being shown and you have to hold the mouse over to get it in a tooltip, or shudder actually click on the thing. HTML is great at word-wrapping and allowing the whole UI to “flow” with variable heights and widths as necessary - and yet that is never allowed to happen in apps.

  • ZeroOne@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    I’m still waiting for the day we get a proper alternative to JavaScript.

    If I had to make one, it would have a Bash-like syntax

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        16
        arrow-down
        1
        ·
        edit-2
        18 hours ago

        I have definitely gone into a rageful fugue state and woken up a week later after reworking an entire code base from being an inconsistent mess of slop…

        …into actually having a common library of functions instead of just rewriting slightly different versions of them 8 times, having those functions only actually instantiated for necesarry classes…

        …rewriting every variable name and function name to an actually consistent and intelligible naming scheme…

        … and finally, moving a whole bunch of shit out of some kind of global ‘think’ type loop that doesn’t actually need to be called or checked every goddamned micro second.

        Done that more than once actually.

        Never look inside ‘baby’s first video game mod’ code, unless you have healthy blood pressure.

        But uh yeah, spite, hatred, and anger are indeed powerful motivators for making good code, lol.

        … so many idiots just jam everything into a global, called every tick loop, and then claim that it just can’t be optimized, because “the game engine just can’t handle it”…

        • ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          6 hours ago

          I spent a good fraction of my career taking over and trying to fix code bases that my company refused to scrap and replace outright because they didn’t want to admit their worthlessness. Complete rewrites would have taken maybe a tenth of the time I spent.

          My favorite thing to encounter (which was nearly universal) was the phenomenon of a young programmer fresh out of college encountering SQL for the first time, deciding he hated it, and writing a huge mess of code to handle auto-generating the necessary SQL. I remember taking over one C# application that had classes named “AND.cs” and “OR.cs” which just took a String as a parameter and returned that String with " AND " and " OR " appended to it, respectively. In about an hour, I replaced three months of this guy’s work that had bottlenecked the project with like five SQL statements.

          It’s insane to think what the civil engineering world would be like if it had the career structure of the software world.

          • sp3ctr4l@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            4
            ·
            edit-2
            4 hours ago

            Jesus Fucking Christ.

            I’ve done a lot of SQL/Database type work as well, and yep, I’ve been the person learning their insane spider web of db structures, and then either trying to enforce some kind of actual defined standards going forward, or in some instances, succeeding at restrucuring the dbs, transitioning them, and convincing corporate that this actually needed to be done.

            It’s insane to think what the civil engineering world would be like if it had the career structure of the software world.

            Points at understaffed ATC tower, collapsing bridge that hasn’t been even evaluated in a decade, general state of roadway disrepair and constant re-repair, also the new highway/overpass/lane expansion being built to ‘solve traffic’ despite doing that literally never working

          • lordbritishbusiness@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            ·
            5 hours ago

            First thing I tell my interns: “The guys that made that database are smarter than you, they got PhD’s for the algorithms the database uses. You are going to use SQL properly, and query properly, because the database will always do it better than your python code.”

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      17 hours ago

      I prefer the term “spite-driven development”.

      I wrote an SDL replacement but worse after SDL refused to work with audio streams for me even after a week of googling, it took me the same amount to get it work with WASAPI directly as looking up audio streams, instead of the many easymp3playback.dll type solution. Another one week was making ALSA working. At least it’s in D, so I have an easier time with development.

      I also almost was involved with a YanSim clone development called “Love Letter: My True Feelings”, but shit just started to hit the fan (character designer just left), so I decided to not get involved as a coder.

  • mohab@piefed.social
    link
    fedilink
    English
    arrow-up
    45
    ·
    22 hours ago

    What’s this dude talking about?! Everyone knows no one hates React like people who code in React 😂 No one is gonna get pissed off watching this.

    • criss_cross@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      13 hours ago

      I remember years ago when React was the savior of web apps Swooping in engineers from the clutches of JQuery and AngularJS (not to be confused with Angular 2+). Components we’re gonna make things simpler than the mess of JS files and global state.

      And generally that’s true but we’ve traded that off for a mess of hooks and 700 line nested functions in nested functions and obtuse rules that only apply to react and not JS.

      Complex web apps are hard.

      • ClassifiedPancake@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        10 hours ago

        I think it’s great and I’ve been working with it for 6 years. Many issues were resolved over time. We didn’t even have hooks back when I started! Those were dark times. And the new compiler helps with memoization.

      • Lemminary@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        16 hours ago

        I don’t, but it can be really annoying when I accidentally fall for a common trap that I supposedly know how to avoid after all these years! Gah.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      44
      ·
      23 hours ago

      That looks like buttons in the thumbnail, on the left of the visualisation.
      I’d say that’s enough to call it UI.

    • zr0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      1
      ·
      22 hours ago

      UI. User Interface. The bridge between a system and a user. So anything, literally any information transfer from the user to the system OR from the system to the user, is a User Interface.

      • deegeese@sopuli.xyz
        link
        fedilink
        arrow-up
        4
        arrow-down
        17
        ·
        22 hours ago

        A definition so broad as to be useless.

        Is it a UI when someone calls memcpy to move data from a file to a screen buffer?

        • ByteJunk@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          19 hours ago

          This isn’t hard, you’re just trying to make it to be.

          Memcpy from a file to a screen buffer is as much a UI as pouring water in a pot is a soup.

        • zr0@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          21 hours ago

          I did not make this definition. However, this does not give you the freedom to make up your own definition and treat it as a fact. Don’t spread wrong information.

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      20 hours ago

      Would you agree that the dashboard of a car is UI? If so, isn’t that just data visualization?

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    20 hours ago

    There used to be a UI library on the Amiga called MUI.

    It used a bunch of C macros to let you define the window and all the controls. Was honestly pretty good considering it was like 30 years ago.

    • ArmchairAce1944@discuss.online
      link
      fedilink
      arrow-up
      8
      ·
      20 hours ago

      React is a Javascript based web development programming language developed by Facebook to make pages run faster and better. I learned it as part of a MERN stack full web development course.

      • grue@lemmy.world
        link
        fedilink
        arrow-up
        21
        arrow-down
        2
        ·
        20 hours ago

        to make pages run faster and better.

        Huh, well that’s a funny way of saying “break the model of web page as document and fuck up the entire web!”

        • RageAgainstTheRich@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          15 hours ago

          Oh stop it. Are you saying you don’t enjoy pressing the “Back” button in your browser, but staying on the same page. Therefore breaking the page so you refresh and lose whatever the fuck you were doing? /s

        • CookieOfFortune@lemmy.world
          link
          fedilink
          arrow-up
          12
          ·
          19 hours ago

          Yeah because documents are limiting and we want to do stuff that executables can do but with a better distribution model.

            • CookieOfFortune@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              12 hours ago

              Maybe. But performance, availability, and security killed a number of viable options. Flash was always more ubiquitous than Java on the web but it eventually died too.

              • grue@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                1 hour ago

                Flash was also cancer that ruined web pages.

                The reason Java Web Start wasn’t, was specifically because once you clicked on the link, it downloaded the app and started it as a real desktop application, with its own window and taskbar entry and whatnot. It didn’t rely on being embedded in HTML (I’m specifically not talking about Java applets, BTW – they sucked too) or manipulating the DOM for its UI; it could use Swing and have the same look and feel as a native application.

  • underscores@lemmy.zip
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    6
    ·
    21 hours ago

    I’m an elitist asshole and I hate that people say “react dev” when really it’s “web dev that uses react”

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      21 hours ago

      Is this distinction really all that useful?

      I suppose you could write a react app that doesn’t use “the web”? But you still might just say they are a react developer.

        • jaybone@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          16 hours ago

          Yeah I guess I’m old. Seems like everything is called “web dev” these days.

          I was answering a question somewhere related to something like C/C++ and Operating System level stuff. Someone replied asking where I learned “web dev.” I would consider that general programming, or possibly systems programming, but certainly not “web dev.”