• SorryQuick@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    Honestly, I’ve only done web dev around 10 years ago and found it so mind-dumbing I left after a year. I have however had AI code a dashboard last year, roughly ~20k lines of mostly front-end and have yet to have heard of any issues from the ~30 people using daily. Why then would I have done this manually in a week when the AI did it better in an hour and $5?

    • jtrek@startrek.website
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Why then would I have done this manually in a week when the AI did it better in an hour and $5?

      Some reasons may include

      • once you have the skills, it won’t take a week
      • once you have the skills, you learn them. They’re yours, not rented
      • you are better able to make changes to it
      • you can be much more confident it doesn’t have any horrible issues like exposing keys in plain text
      • less odds of other issues, like redundant or strange code

      Some of this comes down to “why bother learning anything?”

      I don’t know what your dashboard does. I made a simple display at an old job that showed some stats about new user signups. It took like an hour or two, and I’d never used the particular front end library before.

      Edit: lines of code is a poor metric* but even so 20k seems like a lot

      *For example, the difference between

      function add(a, b) { 
        return a + b;
      }
      

      and

      const add = (a,b) => a + b
      
      • SorryQuick@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        But why would I care about spending a week learning front end stuff when I can spend that week learning stuff that’s actually important for my job? Even had I actually learned it I’d have forgotten by next time I have to use it since too long would have passed.

        There’s no glaring issue as big as exposing keys, I’m not that dumb, I don’t let AI have those. There is 100% some redundant code, AI likes to make 10 helpers that do variants of the same thing, but right now it works and still shows no signs of breaking down a year later. I’d do it again in a heartbeat.

        • jtrek@startrek.website
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Again, we’re circling the question “why learn anything?” I seen to have as an assumption that it’s worth it for its own sake more often than you do.