3 ms·
Tests don't always add time/overhead and I find quite the reverse true in practice, that by using a simplified version of TDD I write code faster than I used to
by eikenberry 10y ago
Tests don't always add time/overhead and I find quite the reverse true in practice, that by using a simplified version of TDD I write code faster than I used to. Writing new features/functionality in isolation while writing tests along side it to run it. Experience is probably also at play here as I've learned this habit after 20 years of programming, but when forced to write code in other ways (eg. working on legacy spaghetti code that resists this method) I find it takes significantly longer.
- itamarst 10y agoFor library code, yeah, I just TDD by default and I doubt it slows me down. Might speed things up. End-to-end tests... those are expensive, slow and brittle. Often necessary, though.