SoftOver
 
Recommended


User login


 

Test Driven Learning

   

Interesting idea - testing as a way to learn a new language:

"... That's pretty much everything I know about Ruby, give or take.
It's a living repository of knowledge; the test suite grows each time I learn something new. Promptly after installing a new version of Ruby, I run the test suite. I do that not necessarily because I think the tests will find a bug, but rather to get a heads-up when something has changed and I need to reset my expectations. It's also a good way to identify when something has been deprecated.

But the real value of writing these tests was less about testing, and more about learning. Through trial and error they taught me how Ruby and its rich set of libraries really work. Not surprisingly, typing in code and running it makes you remember. Indeed, writing learning tests is a fun way to poke and prod any new language or API. And with every test you write you're investing in an executable knowledge base..."

read an article