this post was submitted on 14 Aug 2025
170 points (98.9% liked)
Programmer Humor
25730 readers
1226 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Honestly this is the reason TDD is most important for personal projects.
If it's your job, the code isn't getting merged without decent tests. Yes you should probably write them first so you think about your implementation properly, but let's face it, many tests are written after in practice.
If it's something written in your free time, you're just not writing those tests most of the time if you didn't write them up front.
I tried TDD in a personal project recently and it got annoying pretty fast. It was also a project where I tried a new Framework so writing test when one doesn't know how things behave exactly results in adjusting the tests afterwards anyway.
Thinkimg how I want to designe my API upfront while discovering the details as I go served me well in the past (still in context of personal projects).
It also doesn't help when my tests have more bugs than the tested code...