this post was submitted on 19 Aug 2025
1348 points (99.5% liked)

Programmer Humor

25827 readers
2951 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jerkface@lemmy.ca 5 points 7 hours ago* (last edited 7 hours ago)

Unit tests become the specification once they are written. ChatGPT can easily write unit tests from whatever your specification is before that -- such as documentation, a bunch of comments and stubs, or even a first draft of the function itself, given enough context from the rest of the project.

Unit tests are too klunky to think in. You don't prototype the specification by implementing unit tests. And you really only lay down a few critical paths even if you "write the tests first" because code paths always come up during implementation that demand more test coverage anyway.