If so, I’d like to know about that questions:

  • Do you use an code autocomplete AI or type in a chat?
  • Do you consider environment damage that use of AIs can cause?
  • What type of AI do you use?
  • Usually, what do you ask AIs to do?
  • 1hitsong@lemmy.ml
    link
    fedilink
    arrow-up
    25
    ·
    1 month ago

    I don’t.

    I played around with it twice, but both times it gave me nonfunctioning code. It seemed stupid to use it when I’d still have to go back and rewrite it anyway.

  • CodenameDarlen@lemmy.worldOP
    link
    fedilink
    arrow-up
    9
    ·
    1 month ago

    My answer (OP): I use AI for short and small questions, like things I already know but I forgot, like “how to sort an array”, or about Linux commands, which I can test just in time or read the man page to make sure it works as intended.

    I consider my privacy and environment, so I use a local AI (16b) for most of my questions, but for more complex things that I really need any possible help I use Deep Seek Coder v3.1 (671b) in the cloud via ollama.

    I don’t use autocomplete code because it annoys me and don’t let me think about the code, I like to ask when I think I need it.

  • Rayquetzalcoatl@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 month ago

    No, I don’t. I often have to fix the work of my colleague and my boss, who do use it. I often have to gently point out to my boss that just because the chatbot outputs results for things, doesn’t mean those results are accurate or helpful.

  • Lysergid@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 month ago
    • I don’t use AI code autocomplete. It was giving me nonsense and interrupts my thought process when I write code. Standard non-AI autocomplete is much better. I tried to use chat to generate medium size logic (up to 100 lines). Mostly it does not work or refining prompt takes more time than writing code myself so I stopped using it for medium sized tasks. I use it for small tasks up to 20 lines where I need an example of how to use specific API. What it does well is generating test cases (not tests themselves). I once tried to summarize set of made up requirements (can elaborate if anyone interested in), it instantly gave me idea of how far we are from AGI as it failed miserably.
    • I do not consider for my usage since I use it maybe once-twice a week on average. But generally, I think it’s a huge waste of resources, not only natural but financial and human
    • Claude 4 sonnet at work. Mistral for personal curiosity episodes
    • I already covered work part. For personal, mostly “searching” random info I couldn’t find via DDG or offloading social rituals such as congratulations
  • Mozart409@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

    I use AI as a sort of junior developer, I know the problem domain but a bit to lazy to write all the code. I develop on a remote Linux VM with tmux, nvim and opencode. Have the ai tmux session and my development session on a different project. Make sure to have a clean git tree and then I detach from one session to the ai session and check the progress.

    The ai makes mistakes so a cautious review of all the code is needed.

    I mostly use Claude and I can NOT recommend any kimi k2 model. If you need something okish and cheap use open router gpt-oss 120.

    AI is a power tool if you don’t know what are you doing you get burned.

  • saplyng@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    I use AI as a rubber duck, to compliment the rubber ducks on my desk when they don’t give enough feedback. So it’s use is mostly conceptual, I find that models that provide “thinking” output perhaps more useful than whatever its actual answer is because it asks questions about edge cases I might not have considered.

    As for code generation, I hate it. It outputs garbage, forgets things, hallucinates, and whatever thing it writes I’ll have to rewrite anyway to actually make it compile.

    As I’m fairly isolated at work I think it makes a good pair programmer partner, so to speak. Offering suggestions that I can take into consideration and research heavily if I think it’s a good one.

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 month ago

    At work, I still use JetBrains’, including the in-line, local code completion. Though it (or rather the machines at work) are so slow, 99% of the time I’ve already written everything out before it can suggest something.

  • remotelove@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    When I use it, I use it to create single functions that have known inputs and outputs.

    If absolutely needed, I use it to refactor old shitty scripts that need to look better and be used by someone else.

    I always do a line-by-line analysis of what the AI is suggesting.

    Any time I have leveraged AI to build out a full script with all desired functions all at once, I end up deleting most of the generated code. Context and “reasoning” can actually ruin the result I am trying to achieve. (Some models just love to add command line switch handling for no reason. That can fundamental change how an app is structured and not always desired.)

  • jasory@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    The only code generation assistance I use is in the form of compilers. For fun I tried to use the free version of Chatgpt to replicate an algorithm I recently designed and after about half-hr I could only get it to produce the same trivial algorithms you find on blog posts even with feeding it much more sophisticated approaches.

  • Colloidal@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    Single function text prediction, class boilerplate, some refactoring.

    It’s decent when you inherit outrageously bad legacy code and you want better comments and variable names than “A, x, i”, etc.

    You do have to do it within an editor that highlights all changes so you can carefully review, though.

    Not so much a productivity boost, but rather a bad intern you can delegate boring, easy tasks to. I’d rather review that kind of code than write it, but of you’re the other way around, it’s a punishment.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Maybe naming single-letter variables I can see being easier to review than to do.

      Any other kind of refactoring though, IDE refactoring tools are instantaneous and deterministic.

      • Colloidal@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        When the code your have to deal with is an ASP (not .NET) created by apes throwing shit in a wall, the kind of holistic bullshit an AI makes is an improvement.

  • cecilkorik@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 month ago

    Sometimes it is helpful to summarize large unfamiliar codebases relatively quickly, provide a high level overview, quickly understanding the layout and structure and help me locate the particular areas I’m interested in but I don’t really use it to write or modify code directly. It can be good at analyzing logs and datafiles to find problems or patterns or areas that need closer (human) investigation. Even the documentation it produces can sometimes be tolerably decent, at least in comparison to my own which is sometimes intolerably bad or missing completely.

    But as far as generating code? I’ve found the autocomplete largely useless and random. As for chat, where I can direct it more carefully, it might be able to accurately provide a well-known algorithm for something but then will use a mess of variables and inputs that interact with that algorithm in the stupidest ways possible, the more code you ask it to generate the worse it gets, getting painfully overengineered in some aspects and horribly lacking in others. If it even compiles and runs at all. Even for relatively simple find this/replace it with this refactoring I find I cannot fully trust it and rely on the results, so I don’t. I’m proficient enough with regex and scripting that I don’t find it any faster to walk a generative AI to the result I want while analyzing the fuzzy logic it uses to get there than it is to just write a perfectly deterministic script to do it instead.

    As a general rule, I find it is sometimes better at quickly communicating particular things to my manager or other developers than I am, but I am almost always better and quicker at communicating things to computers than it is. That is, after all, my job. Which I happen to think I’m pretty good at.

    As for the environmental aspect, that’s why I don’t use it in my personal life basically at all if I can avoid it. Only at work, and only because they judge my usage of it as part of my performance. I would be just as happy not using it at all for anything. And when I do use it for personal use, which is a point I haven’t really reached except for a bit of experimentation and learning, I am never willingly going to use a datacenter-hosted model/service/subscription, I will run it on my own hardware where I pay the bills so I am at least aware of the consequences and in control of the choices it’s making.