12
Used to blow an hour rereading code before writing tests, now I write the test first and let it guide the code instead.
After 4 years of backend work in Denver, I switched to test-driven development last winter because my team kept finding bugs in production, has anyone else found that writing tests upfront actually saves time or does it just slow you down at first?
2 comments
Log in to join the discussion
Log In2 Comments
oliverbailey3d ago
Yeah I read something similar from a dev blog that said the first two weeks feel like you're swimming in molasses but after that the clarity is worth it... @robert_craig described that adjustment period perfectly, it's like training your brain to think backwards for a bit.
7
robert_craig3d ago
Yeah the first month or two it definitely feels slower because you're learning a new rhythm. Once it clicks though you stop wasting time on code that doesn't even need to exist, and debugging gets way easier since you know exactly what broke.
2