The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Test First

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Test First Posted: Nov 24, 2003 3:27 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Test First
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement
I've talked about Test First Development a number of times, but the dirty little secret is that I haven't really been practicing what I've preached. I spent many years as a pre-sales consultant, and the normal pattern of development (if you can call it that) for an SE is "hack until it works". Well, over the weekend I was looking at the posting tool for the blog - now that there's a decent sized blog community here, the logic used to transform wiki style markup to html was just too much a hack for me to stand. So I sat down to redo it - and decided to actually write some tests.

In with the epiphany. What I've usually done is create ad-hoc workspace tests, and just gone with that. The problem is, those tests don't really work that well - there's no history, and you don't tend to retest old behavior as you add new behavior - so you miss bugs that creep in. This weekend, as I wrote my markup code, I created tests, and then wrote the markup code to push out what the tests expected. I had to change my approach a few times as I went through different forms of markup, and the tests showed me where I had broken things. Yeah, all of that is obvious - but it's not something I had been doing.

Now, I'm a believer :)

Read: Test First

Topic: Researchers warn against walking and talking Previous Topic   Next Topic Topic: BottomFeeder in VW 7.2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use