News for hackers. Stuff that matters.
Re:Extreme Programming, a Reflection by pjmlp on Wednesday December 18, 2013 @03:28AM (#6926464)
> Test-first TDD is even less popular

I never bought into TDD, although I do write unit tests for most of the code where it makes sense.

No one has been able to show me an usable way to do TDD when coding native UIs, mobile OS, embedded systems or when using third party libraries not built with testing in mind.

Plus TDD makes very hard to properly design algorithms and data structures, that should beforehand be done at the whiteboard.

Re:Extreme Programming, a Reflection by jerf on Wednesday December 18, 2013 @09:53AM (#6927754)
"No one has been able to show me an usable way to do TDD when coding native UIs, mobile OS, embedded systems or when using third party libraries not built with testing in mind."

I agree. However, I do not consider this a strike against testing; I consider it a strike against native UIs, mobile OSs, embedded systems, and third party libraries that don't support testing. You may not do TDD (I generally don't), you may not strive for 100% coverage, but testing is a fundamental aspect of serious software engineering, and anything that actively fights your attempts to test it is a big strike against that tech. I only use the ones that fight you that hard because there's unfortunately no competition, but it's still a disgrace. In 2013, testing ought to be a fundamental first-class concern of any new UI library, yet here we are.

Re:Extreme Programming, a Reflection by kabouseng on Wednesday December 18, 2013 @04:07AM (#6926559)
Have a look at test driven development for embedded C by James Grenning for a viewpoint of how TDD might work in the embedded world. I found it to be a great resource.

http://pragprog.com/book/jgade/test-driven-development-for-e...

Re:Extreme Programming, a Reflection by dkersten on Wednesday December 18, 2013 @08:14AM (#6927304)
This is a fantastic book!
Re:Extreme Programming, a Reflection by pjmlp on Wednesday December 18, 2013 @04:49AM (#6926704)
Thanks, I know that book.
Re:Extreme Programming, a Reflection by joshuacc on Wednesday December 18, 2013 @09:22AM (#6927597)
Why do you think that TDD prohibits you from using a whiteboard to design your algorithms and data structures beforehand? As far as I can tell, doing that work, then writing your first test is just TDD done well.
Re:Extreme Programming, a Reflection by pjmlp on Wednesday December 18, 2013 @11:23AM (#6928419)
Because that is what TDD advocates sell at agile conferences, design by coding.