103
you are viewing a single comment's thread
view the rest of the comments
[-] ArbiterXero@lemmy.world 67 points 1 year ago

As someone that uses ChatGPT daily for boilerplate code because it’s super helpful…

I call complete bullshite

The program here will be “hello world” or something like that.

[-] LazaroFilm@lemmy.world 27 points 1 year ago* (last edited 1 year ago)

Absolutely I can create a code for your app.

void myApp(void) {
  // add the code for your app here
  return true;
}

You may need to change the code above to fit your needs. Make sure you replace the comment with the proper code for your app to work.

[-] whileloop@lemmy.world 19 points 1 year ago

Couldn't even write a void method right, return true!

[-] LazaroFilm@lemmy.world 3 points 1 year ago

LMAO. At list it didn’t sudo void… (:

[-] Ertebolle@kbin.social 6 points 1 year ago

OTOH, if you take that hello world program and ask it to compose a themed cocktail menu around it, it'll cheerfully do that for you.

[-] Semi-Hemi-Demigod@kbin.social 6 points 1 year ago

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 1 year ago

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

[-] Semi-Hemi-Demigod@kbin.social 0 points 1 year ago

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 1 year ago

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 1 year ago

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.

[-] Kerfuffle@sh.itjust.works 4 points 1 year ago

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

Why are you actively trying to avoid learning how to write the loop? Are you planning to have ChatGPT fill in your loop templates for the rest of your life?

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

It's going to be slower overall than just using the reference and learning how to do it. I really, really am skeptical that a developer at the level where they need that feature is going to seem like a miracle worker to anyone other than people who are just impressed when you can do anything with a computer.

[-] Semi-Hemi-Demigod@kbin.social 0 points 1 year ago

Why are you actively trying to avoid learning how to write the loop? Are you planning to have ChatGPT fill in your loop templates for the rest of your life?

First, how is this different from having your IDE fill in your loop templates?

Second, no, of course I learn how to do it and then copy/paste from my existing code like a normal person.

Third, this is much more customizable. The example I gave is pretty simple, but you can explain algorithms to ChatGPT and have it figure it out.

Finally, I'm usually doing this for a customer in a language I'll never use again. Last week it was LabView. My role has me writing proofs-of-concept for customers frequently so I'm not going to learn something I'll never use again.

It’s going to be slower overall than just using the reference and learning how to do it.

Not when you're not familiar with the syntax and don't have an IDE set up for it.

other than people who are just impressed when you can do anything with a computer.

This happens in my job a lot more than I'm comfortable with.

[-] Kerfuffle@sh.itjust.works 1 points 1 year ago

First, how is this different from having your IDE fill in your loop templates?

I don't do that actually, but I think there are some differences.

  1. One is if there's a loop template in your IDE, you know it's going to work. With LLMs you have to double check stuff (or just have it be wrong some of the time).
  2. You don't have to type in a bunch of instructions to use a loop template. You also don't really have to wait for the filled in template to get generated.
  3. People don't usually use that because they just don't know how to write the loop themselves, it's a convenience feature.

That said:

I’m usually doing this for a customer in a language I’ll never use again.

Maybe you're the one in a million exception where this approach is a benefit. Most of the time when you talk to people on the internet, they're going to assume you're a reasonably typical case and not the extremely rare exception.

[-] Vlyn@lemmy.zip 2 points 1 year ago

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 1 year ago

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 1 year ago

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 1 year 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 1 year ago

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

[-] kitonthenet@kbin.social 3 points 1 year ago* (last edited 1 year ago)

I can totally see the use case for boilerplate, but I’m also very very rarely writing new classes from scratch or whatever.

As always, proof of concept or gtfo

this post was submitted on 11 Sep 2023
103 points (68.5% liked)

Technology

59456 readers
4148 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 content.
  3. Be excellent to each another!
  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, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS