this post was submitted on 11 Sep 2023
91 points (67.4% liked)

Technology

73758 readers
3292 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Semi-Hemi-Demigod@kbin.social 6 points 2 years ago (2 children)

It's great for things like "How do I write this kind of loop in this language" but when I asked it for something more complex like a class or a big-ish function it hallucinates. But it makes for a very fast way to get up to speed in a new language

[–] SpaceNoodle@lemmy.world 3 points 2 years ago (1 children)

So just a little more time-consuming than just reading the online documentation.

[–] Semi-Hemi-Demigod@kbin.social 0 points 2 years ago (1 children)

It's a lot less in my opinion, because you can just ask it a question rather than having to read and interpret things. Every programming tutorial in every language is going to waste my time explaining how loops and conditionals work, when all I want is how this language does them.

[–] Vlyn@lemmy.zip 3 points 2 years ago (1 children)

Seriously?

If I google for example:

how to do loops in c#

The first result is https://www.w3schools.com/cs/cs_for_loop.php

In the time it took me to get to that ChatGPT would still be writing its reply.

[–] Semi-Hemi-Demigod@kbin.social 0 points 2 years ago (1 children)

Right, but you can't give it the variable names you're using and have it fill them in, and if you want to do something inside that loop with

I can ask ChatGPT "Write me a loop in C# that will add the variable value_increase to the variable current_value and exit when current_value is equal to or greater than the variable limit_value, with all the variables being floats"

You won't find that answer immediately on the Internet, and you're more likely to make errors synthesizing the new syntax.

But you do you, I'll keep using ChatGPT and looking like a miracle worker.

[–] Vlyn@lemmy.zip 2 points 2 years ago (1 children)

If writing simple loops with ChatGPT makes you a miracle worker then you might have other problems than AI.

And even simple things break down when you ask it about using library functions (it likes to hallucinate heavily there).

[–] Semi-Hemi-Demigod@kbin.social 1 points 2 years ago (1 children)

It's not that writing loops does it, it's that I can ask ChatGPT to hand me pre-assembled parts that I can snap together instead of typing them out with my squishy human fingers. And I can do it for pretty much any language without too many syntax errors.

[–] Vlyn@lemmy.zip 3 points 2 years ago (1 children)

I'm a senior software developer (Currently .NET backend with DevOps). Writing code is probably less than 10% of my work day. And in that 10% Visual Studio autocomplete does most of the typing. It's frequently wrong, but it's good enough plenty of the times.

Actually working on software consists of writing specifications, security concerns, architecture, talking management out of dumb decisions, having meetings with stakeholders or other companies, working on automatic deployments, writing unit and integration tests, refactoring, performance optimizations, database migrations, bugfixing, ...

Green field writing new code is rare and that's mainly what AI can do (80% correct, maybe). Most of real programming work happens on existing code.

[–] Semi-Hemi-Demigod@kbin.social 1 points 2 years ago

I'm not saying AI will write entire applications, but it is really useful at writing small bits of code for a human being to assemble which can greatly improve productivity.

Though if we could get it to handle stakeholder meetings I'll never use it for programming again.

[–] LazaroFilm@lemmy.world 2 points 2 years ago

Yea I ask it to show me examples of how to solve specific tasks. Not a whole app.