Diacone Frost on Nostr: I don't TDD because if your reqs and both code change too fast it's waste of time. ...
I don't TDD because if your reqs and both code change too fast it's waste of time.
I'm deeply into functional programming and I do have "perfect" functions. And a test suites for them. Never worte them upfront.
I write a (hopefully pure) function for some data transformation taks. Test my program, then I write a test which makes sure even all corner cases are covered. And fix my function. Not TDD but still well tested. But only if I'm sure the function will be used.
Published at
2025-02-24 19:31:58Event JSON
{
"id": "52f8df9125ed5791acaa2ceba542541f770667a00dadd3fedc4424c5b317cf5c",
"pubkey": "8633073b8567da97ad119fedd9716154aa283234cbb7d28d5131daa077d1cf7a",
"created_at": 1740425518,
"kind": 1,
"tags": [
[
"e",
"8f7b8c97a1dfe566f911dc859993ef3c32e3600b773e7f83d4ecce7b2868d1fc",
"",
"root"
],
[
"e",
"95ae9d3c6bd44a4c720db42d8c06043408b275312429e3c45eb7b37f82388356"
],
[
"e",
"495cba5e23f78b3b462ee9f58b1a9c1c7f78697de821b524c8ba82fb499253c3",
"",
"reply"
],
[
"p",
"7ed7d5c3abf06fa1c00f71f879856769f46ac92354c129b3ed5562506927e200"
],
[
"p",
"99bb5591c9116600f845107d31f9b59e2f7c7e09a1ff802e84f1d43da557ca64"
],
[
"p",
"8633073b8567da97ad119fedd9716154aa283234cbb7d28d5131daa077d1cf7a"
]
],
"content": "I don't TDD because if your reqs and both code change too fast it's waste of time.\n\nI'm deeply into functional programming and I do have \"perfect\" functions. And a test suites for them. Never worte them upfront.\n\nI write a (hopefully pure) function for some data transformation taks. Test my program, then I write a test which makes sure even all corner cases are covered. And fix my function. Not TDD but still well tested. But only if I'm sure the function will be used.",
"sig": "91354ba00a222bf8ee15eee3e4f7f529e4604ea8f80ec7565fea481f0f775cbb39d741c89d9920df9a7f63e82e5cbe73b3b2e006792258069ef9786caf3d4fe8"
}