Reactions to story from ongoing · When · Naughties
Ruby 1.9 I18n and Mashup Testing
http://www.tbray.org/ ongoing/ When/ 200x/ 2008/ 05/ 04/ Ruby-1.9-i18n-code
A couple of points on that PDML + Twitter mashup. First, yet another homily saying “Please unit test”. Second, some commenters wanted to see the code even though it’s trivial, and I found a reason to agree. TDD I was just sketching this in on a lark, so why, I thought, go all bureaucratic with unit testing? Mea culpa. Mea maxima culpa. A PESO came along that broke the code, so I fixed it and broke some other code. On that path lies madness. So I did the right thing: looked at the code, realized that if it were to be testable, it needed to be refactored, and hey, the refactoring made it better.
More rising blog posts
-
Entertainment »
Mark Strong Joins 'Sherlock Holmes' -- Russell Crowe Still In? -
Business »
No ChaChing For ChaCha Guides -
Lifestyle »
Polly Guerin Talks About Writing Magazine Articles - Videos About Writing -
Politics »
Banning Books...Amazing that this is still a threat in the 21st Century -
Sports »
Beijing Paralympics on YouTube -
Technology »
Legacy Media Underreports Crowds at McCain/Palin Appearances
More rising news stories
-
Entertainment »
Britney 'Getting Opportunity to Start Over' at VMAs -
Business »
Premier League: Chelsea's Deco has said that Robinho signed for Manchester City 'only for the money' -
Lifestyle »
Venezuela to host Russia navy exercise -
Politics »
Civil servants to vote on strike -
Sports »
Football: Manchester United game 'too soon' for Steven Gerrard's Liverpool return
Recent posts from ongoing · When · Naughties
-
Three Thousand and One
2 days ago -
Crossings
2 days ago -
Morning Over Mountains
4 days ago