3 ms·
Was TDD ever really alive? I have a hard time getting less technical bosses to accept automated unit testing at all, without having them just reduce it to a %
by logfromblammo 12y ago
Was TDD ever really alive? I have a hard time getting less technical bosses to accept automated unit testing at all, without having them just reduce it to a % coverage metric that I not only have to report, but also satisfy annual goals. For them, TDD is a potential source of new buzzwords.
TDD is one of those things that only works when developers have a high degree of control over their own work. Anecdotally, that has been hard for me to find.
I think the only way to get widespread and useful adoption is to actually construct a high-level language around it, such that the code and the test are tied together by syntax, in the same file, and coverage is enforced by the compiler.
Otherwise, you're stuck trying to enforce TDD via voluntary human cooperation. While you may have confidence in writing and refactoring your code, that just shifts the uncertainty that remains in development of a complete product onto the screening of new hires and avoidance of certain management edicts.
Essentially, you need a fully automated test cop.
- njharman 12y agoFor the environment you describe in first sentence, no good software methodology could live. It's just not possible (unless you ignore them / break "rules") to create good software with incompetent, meddling, pointy heads like that.
- logfromblammo 12y agoThat sort of environment is depressingly common outside of the major tech hubs. My current employer just celebrated its millionth line of code on a glorified CRUD+reports application. I have been reprimanded for suggesting better development practices. Obviously, I am trying to find a better job that still pays reasonably well for a 40-hour work week.
- taurath 12y agoDamn - has anyone suggested to them to perhaps pick a non-LOC based milestone to celebrate at? Or perhaps was the announcement aimed more at non-technical folks elsewhere in the company?