this post was submitted on 01 Aug 2024
2232 points (99.1% liked)

Technology

58303 readers
12 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
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 3 months ago (1 children)

I just recently got copilot in vscode through work. I typed a comment that said, "create a new model in sqlalchemy named assets with the columns, a, b, c, d". It couldn't know the proper data types to use, but it output everything perfectly, including using my custom defined annotations, only it was the same annotation for every column that I then had to update. As a test, that was great, but copilot also picked up a SQL query I had written in a comment to reference as I was making my models, and it also generated that entire model for me as well.

It didn't do anything that I didn't know how to do, but it saved on some typing effort. I use it mostly for its auto complete functionality and letting it suggest comments for me.

[–] [email protected] 5 points 3 months ago (2 children)

That’s awesome, and I would probably would find those tools useful.

Code generators have existed for a long time, but they are usually free. These tools actually costs a lot of money, cost way more to generate code this way than the traditional way.

So idk if it would be worth it once the venture capitalist money dries up.

[–] [email protected] 3 points 3 months ago

That's fair. I don't know if I will ever pay my own money for it, but if my company will, I'll use it where it fits.

[–] [email protected] 1 points 3 months ago (1 children)

What are these code generators that have existed for a long time?

[–] [email protected] 2 points 3 months ago (1 children)

Lookup emmet.

I’ve also found IntelliJ’s generators useful for Java.

[–] [email protected] 1 points 3 months ago (1 children)

Neither of those seem similar to GitHub copilot other than that they can reduce keystrokes for some common tasks. The actual applicability of them seems narrow. Frequently I use GitHub copilot for “implement this function based on this doc comment I wrote” or “write docs for this class/function”. It’s the natural language component that makes the LLM approach useful.

[–] [email protected] 1 points 3 months ago

There is also auto doc generators.

I think what you’re specifically referring to is accessibility or ease of use. For someone unfamiliar with those tools, I can see the appeal.

Personally, as a software dev, I think it’s just very inefficient way to accomplish this goal. LLMs consume vastly more resources than a simple script. So I wouldn’t use it, especially if I’m paying real money for it.