this post was submitted on 03 Oct 2024
371 points (94.7% liked)

Technology

59554 readers
3333 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
[–] Dremor@lemmy.world 9 points 1 month ago (2 children)

I also use it a lot for unit tests. It helps a lot when you have to write multiple edge cases, and even find new one at times. Like putting a random int in an enum field (enumField = (myEnum)1000), I didn't knew you could do that...

[–] Landless2029@lemmy.world 5 points 1 month ago

Yeah. I've found new logic by asking GPT for improvements on my code or suggestions.

I cut the size of a function in half once using a suggested recursive loop and it blew my mind.

Feels like having a peer to do a code review on hand at all times.

[–] dipdowel@feddit.nl 2 points 1 month ago

Yeah, I also find it super helpful with unit tests, saves a lot of time.