this post was submitted on 24 Jul 2026
446 points (98.3% liked)

Programmer Humor

32452 readers
1709 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Zannsolo@lemmy.world 2 points 9 hours ago (2 children)

I mean I'm theory for any planned method you would know the input and expected output before the coffee is written.

[–] vanillama@programming.dev 1 points 1 hour ago

As I said, an interface can easily be tested, but if it's internal implementation I normally make a design, implement it, and I usually come up with other ideas and I like having the fluidity of making changes as I prototype and such, that way I'm not constrained by a test yet. After I'm done, and documented my choices if necessary, then I add the tests.

[–] ThirdConsul@lemmy.zip 2 points 2 hours ago

Except that then you'll shape your interfaces to drive tests nicely, instead of being, you know, sane and useful (been there, done that).