This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: Learning via Unit Tests
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
This is one ways in which I learn new tech/APIs too.
For simple exploration, play in an interactive shell
For more, start writing tests
This is definitely valuable in its own right, but what if we all started to shall our test suites?
Wouldn't it be nice to have a few suites for Hibernate 3 say. You could download the tests which would have examples of the various parts and pieces of Hibernate (simple one-one test, simple one-many, ....).
We do have test suites from the open source technologies themselves, and they are great resources, but this would have a very different audience.
Also, what if there were also test suites which have all methods throw new RuntimeException("Not Yet Implemented"). You, the developer, would then go through and try to get as many tests to pass as possible, learning all along the way!
We are actually trying to package some of this ourselves as it would be such a cool resource.