this post was submitted on 19 Feb 2024
265 points (96.8% liked)

Technology

72471 readers
3353 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
[–] kescusay@lemmy.world 56 points 1 year ago* (last edited 1 year ago) (2 children)

Copilot isn't actually bad for developers, it's just that you need to be careful with it and recognize its limitations.

Writing a bunch of REST endpoints for an API and need to implement all the typical http verbs, and you already have all the matching methods for reading, updating, and deleting values in a complex SQL database for each endpoint to call? Copilot can turn a ten minute chore into a ten second one. Very handy.

Writing those complex SQL methods in the first place? Yeah... Copilot will probably make a ton of mistakes and its work will need to be triple-checked. You'll save time just doing it yourself if you know how. (And if you don't, you have no business calling yourself a developer.)

Copilot is best for easy boilerplate and repetitive code. Problems arise as soon as you ask it to get "creative."

[–] TimeSquirrel@kbin.social 14 points 1 year ago* (last edited 1 year ago) (2 children)

One time I decided for shits and giggles to just keep pushing tab and see where it went. It didn't take long for it to enter a useless recursive loop, hallucinating a new iteration of the same thing on each line.

It definitely isn't gonna magically think up new algorithms for you. I don't know what everybody is scared of. It ain't even gonna replace my kid programming on Scratch.

[–] kelvie@lemmy.ca 2 points 1 year ago

I mean didn't we all do this when phones started autocompleting sentences like a decade ago? (Or however long it was, time perception is fickle)

[–] joel_feila@lemmy.world 1 points 1 year ago

It will if employeers only want ai code

[–] friend_of_satan@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

Always ask it to write tests for the code it generates. Of course, then you have to validate that the code works AND that the tests work.

[–] anotherandrew@lemmy.mixdown.ca 0 points 1 year ago* (last edited 1 year ago)

Or just write the damn thing yourself and save a bunch of headaches and wondering if you got the tests right it if there’s some screwy corner case lurking because of its implementation.