Post #4078801
2026-07-25 03:32 UTC
I mean I’m theory for any planned method you would know the input and expected output before the coffee is written.
Replies (2)
-
@ThirdConsul@lemmy.zip 2026-07-25 11:08
Except that then you’ll shape your interfaces to drive tests nicely, instead of being, you know, sane and useful (been there, done that).
-
@vanillama@programming.dev 2026-07-25 12:18
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.