• Chais@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      I have that with Rust quite frequently. At least a lot more often than with any other language. I love it!

      • flashgnash@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        I think it’s just because rust doesn’t let you make many of the mistakes that’d normally lead to runtime errors

        Pair that with rustcheck in your ide and the only errors you’ll see will be ones you define yourself

  • essteeyou@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 year ago

    An old phrase that’s stuck with me over the years, although I forget where I heard it:

    I like it when my code works first time. It’s like Christmas, but less often.

  • eldavi@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    14
    ·
    1 year ago

    i start everything i do w chatgpt and it’s twice given me a dummy function/method that immediately worked and this was my reaction both times. lol

    it shipped both times and not even the senior guys caught it in any of the peer reviews before it reached the clients; it’s been almost a year for the first one and they’re still happy w it. 🤷

      • ReakDuck@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        I mean, chatgpt can easily create basic code without issues.

        But as soon as you desire something more it might fall apart and then there is where dumb luck comes in.

        • eldavi@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          these were somewhere between basic and difficult, which is why i start with chatgpt; it’s gets you past the basic part more quickly.

      • eldavi@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        5
        ·
        edit-2
        1 year ago

        very much so and it’s painted my impression of the people who have SO MUCH more experience and talent than i do; since they’re expected to catch & correct it.

        it’s also helped me immensely when i pointed out to them that they missed its implicit insecurity after our peer reviews and i’m know that it pissed some of them off.