I have a need, a need for a quote from an iconic 80's film

by Kofi Sarfo 7. October 2009 00:52

It's been almost one week since we started doing this daily code Kata: Roy Osherove's TDD Kata 1 - String Calculator. Thirty minutes every day in October so far. Six days. Three hours. Writing the same functionality over and over. What happens is that, naturally, each time we get a little closer to the end (we've not yet completed it in thirty minutes) and we optimise by anticipating functional requirements and code to allow for simple changes ahead. We'll decide how much of this is cheating once we're actually done a few times within thirty minutes before moving onto the next Kata.

We're using just the one code snippet, TDDtestmethod, which generates a test method. We abandoned the calculator variable name, opting for c.Add instead.

Is there a prize for the longest [Test] case method name?

Calculator_ MultipleDelimeterVaryingLengthSpecifiedDelimitedMultipleStringDecimalValues_ ShouldReturnSummedValues()

Using underscores would only make matters worse. And when we looked at some of our tests recently we discovered that we were unit testing parts of the framework (guess we're still not sure about Entity Framework) and using unit tests for spikes too. The words "Gone Too Far" appeared suddenly.

Tags: ,

Dojo

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Kofi Sarfo modified theme by Mads Kristensen



Content by WIMIRO Technology is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.

Creative Commons License

Powered by BlogEngine.NET 1.5.0.7

About Me

Director, Wimiro Technology
London, United Kingdom

Writes in third person and first person plural; currently commutes to Liverpool St Station.

Kiva Loans

  • Cristal Group

    Cristal Group

    Sewing

    Requested loan: $3775

    Amount raised: $0

    Asunción, Paraguay

    Buy fabric, thread, and buttons

    Loan Now »

  • Tanith Tapullima Flores

    Tanith Tapullima Flores

    Fruits & Vegetables

    Requested loan: $725

    Amount raised: $0

    San Martín, Peru

    To buy fruit to stock her business

    Loan Now »

  • Margarita Quispe Socclla

    Margarita Quispe Socclla

    Tailoring

    Requested loan: $200

    Amount raised: $0

    Cusco, Peru

    Margaria needs a loan to buy thread, cloth, and materials for sewing

    Loan Now »

 To see more entrepreneurs »

Kiva Loans