Ruby Learning Test #1: Are You There, World?

Monday, October 02, 2006 - 3:52 PM
No Comment - Post a comment

I was doing some research on unit testing with Ruby when I stumbled onto a great article. It impressed me not for the information presenting on unit testing, but rather the approach to learning a new language.

Quote:

But it was at that very moment when I asked Ruby a question and it responded with the answer that I learned more than Ruby. I knew right then that I didn't want to run the example just once. No, I wanted to preserve the example and ultimately build a Ruby knowledge base that I could draw from later. That meant the examples had to be executable and check their own results. That sounded familiar. I needed to write tests.

This is potentially quite useful. Often times, I search and search for a way to do something, do it, and forget about it until I find myself searching for it again. If when I found something I put it into a central repository, I could find it much easier in theory.

Source: Ruby Learning Test #1: Are You There, World?

 
This Post has No Comment Add your own!

Post a Comment