• VonReposti@feddit.dk
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    While I am not fond of AI, we do have access to it at work and I must admit that it saves some time in some cases. I’m not a developer with decades of experience in a single language, so something I am using AI to is asking “Is it possible to do a one-liner in language X where it does Y?” It works very well and the code is rarely unusable, but it is still up to my judgement whether the AI came up with a clever use of functions that I didn’t know about or whether it crammed stuff into a single unreadable line.

  • Choco1ateCh1p@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Every now and then, GitHub Copilot saves me a few seconds suggesting some very basic solution that I am usually in the midst of creating. Is it worth the investment? No, at least not yet. It hasn’t once “beaten” me or offered an improved solution. It (more frequently than not) requires the developer to understand and modify what it proposes for its suggestions to be useful. Is is a useful tool? Sure, just not worth the price yet, and obviously not perfect. But, where I’m working is testing it out, so I’ll keep utilizing it.

  • Landless2029@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Everyone keeps talking about autocomplete but I’ve used it successfully for comments and documentation.

    You can use vs code extensions to generate and update readme and changelog files.

    Then if you follow documentation as code you can update your Confluence/whatever by copy pasting.

    • Dremor@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I also use it a lot for unit tests. It helps a lot when you have to write multiple edge cases, and even find new one at times. Like putting a random int in an enum field (enumField = (myEnum)1000), I didn’t knew you could do that…

      • Landless2029@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Yeah. I’ve found new logic by asking GPT for improvements on my code or suggestions.

        I cut the size of a function in half once using a suggested recursive loop and it blew my mind.

        Feels like having a peer to do a code review on hand at all times.

  • ShunkW@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    And yet, higher ups continue to lay off more devs because AI “is the future”.

    • breckenedge@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      In my experience, most of the tech layoffs have been non-devs. PMs and Designers have been the hardest hit and often their roles are being eliminated.

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Flying cars exist, they’re just not cost effective. AFAICT there’s no GPT that is proficient at coding yet.

      • Sylvartas@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        As far as I know, right now the main problem with flying cars is that they are nowhere near as idiot-proof as a normal car, and don’t really solve any transportation problem since most countries’ air regulations agencies would require them to exclusively take off and land in airports… Where you can usually find tons of planes that can go much further (and are much more cost effective, as you pointed out)

        • sepi@piefed.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          3 months ago

          The more people using chatgpt to generate low quality code they don’t understand, the more job safety and greater salary I get.

  • Cpo@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I partly disagree, complex algorithms are indeed a no, but for learning a new language it is awesome.

    Currently learning Rust and although it cannot solve everything, it does guide you with suggestions and usable code fragments.

    Highly recommended.

    • asdfasdfasdf@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Is there anything it provided you so far that was better than the guidance from the Rust compiler errors themselves? Every error ends with “run this command for a tutorial on why this error happened and how to fix it” type of info. A lot of times the error will directly tell you how to fix it too.

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Currently learning Rust and although it cannot solve everything, it does guide you with suggestions and usable code fragments.

      as does the compiler and the rust book

  • LordCrom@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I get more benefit from a good IDE that helps me track libraries, cars, functions, grammar checks my code, offers a pop-up with params and options…

    I don’t needcode I would grade as a D- from an AI. Most of what I write comes from my code closet anyway. I have skeleton code for so much, and I trust my old code more than AIs new code

    • dubyakay@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I run code snippets by three or four LLMs and the consensus is never there. Claude has been the worst for me.

      • CaptSneeze@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Which one has been best? I’m only a hobbyist, but I’ve found Claude to be my favorite, and the best UI by a mile.

    • Warl0k3@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Its basically a template generator, which is really helpful when you’re generating boilerplate. It doesn’t save me much if any time to refactor/fill in that template, but it does save some mental fatigue that I can then spend on much more interesting problems.

      It’s a niche tool, but occasionally quite handy. Without leaps forward technically though, it’s never going to become more than that.

    • dgmib@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Just beware, sometimes the AI suggestions are scary good, some times they’re batshit crazy.

      Just because AI suggests it, doesn’t mean it’s something you should use or learn from.

  • daniskarma@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    It has some uses.

    But I’m waiting for a good self hosted model and to have a more powerful gpu to properly run it.

  • ulkesh@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    No shit. Senior devs have been saying this the whole time. AI, in its current form, for developers, is like handing a spatula to a gourmet chef. Yes it is useful to an extremely small degree, but that’s it…for now.

    • finitebanjo@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      A convoluted spatula that sometimes accidentally cuts what your cooking im half instead of flipping it and consumes as much power as the entirety of Japan.

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      It’s when you only have a pot and your fingers that a spatula is awesome. I could never bother finish learning C and its awkward syntax. Even though I know how to code in some other language, I just couldn’t write much C at all and it was painful and slow. And too much time passed between attempts that I forgot most of it in between. Now I can easily make simple C apps, I just explain the underlying logic, with example of how I would do it in my preferred language and piece by piece it quickly comes together and I don’t have to remember if the for loop needs brackets of parenthesis or brackets nor if the line terminator is colon or semi colon.

      • ulkesh@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        The problem is that you’re still not learning, then. Maybe that’s your goal, and if so, no worries, but AI is currently a hammer that everyone seems to be falling over themselves finding nails for.

        All I can do is sigh and shake my head. This bubble will burst, and AI will still take decades to get to the point people think it is already at.

        • interdimensionalmeme@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          Au contraire, not only you quickly learn the grab bag of strategy and tricks of the “average programmers” and their default solutions, you no longer get bogged down in the menial wrangling of compiler syntax.

          That is IF you actually read, debug and implement this code as part of a larger system.

          Of course if it “just works” and you don’t read how it works then you just get a working tool, but don’t really learn how it works inside. Kind of like those people who just drive cars but never did replace their crank bearings and transmission clutch packs

          If you do interact with the code I think it will quickly elevate a newbie to a mediocre but capable programmer. Progressing beyond that is like stepping out and walking after driving for days.

  • rsuri@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I use it occasionally. Recently I used it to convert a written specification in a document to a java object. And it was like 95% correct - but having to manually double check everything and fix the errors eliminated much of the time savings.

    However that’s a very ideal use case. Most often I forget it exists.

    • rolaulten@startrek.website
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      3 months ago

      I use it a fair bit. Mind, it’s something like formating a giant json stdout into something I want to read…

      I also do find it’s useful for sketching out an outline In pseudo code.

  • BigBenis@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 months ago

    It’s great as essentially a StackOverflow that I can talk to in real time. But as with SO, I’ve still got to figure out what pieces are legit and where they go.

      • turmacar@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        It’s definitely exploded but content farms were a problem even before 2022. There’s a reason google results starting with “reddit” / “stack overflow” were trending so hard.