• Blog
  • Archive
  • About
  • Contact
Sign in

Welcome to rickardnilsson.net

rickardnilsson.net is a weblog and the online home of web developer and father of three, Rickard Nilsson... More

Rickard blogs about creating software solutions using ASP.NET and agile practices.

Sites I've visited recently

  • Twitter
  • Facebook
  • Philip Wildenstam
  • Ninetech - Affärsnytta med IT
  • JetBrains ReSharper
  • Vimeo
  • dnrTV!
  • YUI Theater
  • BlogEngine.Net

Categories

  • .NET
  • Agile
  • ASP.NET 2.0
  • ASP.NET 3.5
  • ASP.NET MVC
  • BlogEngine.NET
  • C# 2.0
  • C# 3.0
  • CSS
  • Design by Contract
  • Design Patterns
  • JavaScript
  • TDD
  • Unit testing
  • User tip

Five most recent posts

  • Dependency injection in ASP.NET MVC with Unity IoC Container
  • ReSharper templates from the Code Kata Cast
  • How to unit test code which depends on HttpContext.Current.Server
  • Code Kata Cast
  • TDD Masterclass in the UK with Roy Osherove

Tag cloud

  • agile
  • ajax
  • asp.net 3.5
  • blog
  • blogengine.net
  • c#
  • code kata
  • css
  • dbc
  • dependency injection
  • design by contract
  • dom
  • douglas crockford
  • fakes
  • foto
  • getweekofyear
  • gregoriancalendar
  • highlight
  • html
  • httpcontext
  • humble dialog box
  • inversion of control
  • ioc container
  • iso 8601
  • javascript
  • jquery
  • jscript
  • julian bucknall
  • live template
  • metaweblog api
  • model-view-presenter
  • mvp
  • patterns & practices
  • photo album
  • picasa
  • recent posts
  • refactor
  • refactoring
  • release
  • resharper
  • rhino mocks
  • roy osherove
  • syntax
  • syntax highlighter
  • tdd
  • tdd masterclass
  • test coverage
  • testing
  • types
  • unit test
  • unity
  • web service
  • week
  • widget
  • word 2007
  • yahoo
  • yui

Recent comments

  • Code Kata Cast (8)
    Rickard wrote: @Marcus Eklund Classical music is royalty free sin… [More]
  • Code Kata Cast (8)
    Marcus Eklund wrote: http://creativecommons.org/ is a good place. Cl… [More]
  • Code Kata Cast (8)
    Rickard wrote: @Johan Lindfors Thanks! @Andrea I use TestDrive… [More]
  • Code Kata Cast (8)
    Marcus Eklund wrote: Nice one Rickard, A bit quiet though :P Used to t… [More]
  • Code Kata Cast (8)
    Andrea wrote: Nice one You can use the R# test runner and assig… [More]
<< TDD Masterclass in the UK with Roy Osherove | How to unit test code which depends on HttpContext.Current.Server >>

Code Kata Cast

Tuesday, 27 October 2009 21:28 by Rickard

Have you ever come across the concept of a Code Kata?

For me it really took off after reading blog posts (1, 2, 3) by Unce Bob Martin and Pragmatic Programmer Dave Thomas. The concept is really simple: how can we, as programmers, better our selves and improve our techniques and proficiency in using the tools and processes in our every day work?

The suggested solution is inspired by the martial arts kata. You learn how to implement a solution to a specific problem and you practice all the moves in the exact same order over and over again. The point is that you should know the moves so well that you forget about them and focus on improving your key strokes and the use of your tool set. The never ending goal is to perform the kata with the least amount of key strokes.

The promice is that practicing these kata's often and regularly makes you a better and more productive programmer in that you are trained to act instinctively in certain reoccurring situations.

Calculator kata cast

Anyway, I've been practicing a kata based on a problem initiated by Roy Osherove and I decied to record it to get some feedback and maybe spread some knowledge on how I practice Test-driven development using ReSharper.

 

Calculator Code Kata Cast 1 from Rickard Nilsson on Vimeo.

Tags:   unit test, refactoring, tdd, code kata, resharper
Categories:   C# 3.0 | TDD | User tip
Actions:  
Share | Comments (8) | |

Related posts

ReSharper templates from the Code Kata CastAfter I posted my Code Kata Cast I received some feedback regarding the ReSharper templates I use to...How to unit test code which depends on HttpContext.Current.ServerMuch of the legacy ASP.NET code I’ve seen is littered with calls to methods on the HttpServerUtility...Week and strong contracts in Design by Contact Answer to Fredrik Normén on Defensive programming and Design by Contract on a routine level...

Comments

November 11. 2009 17:27

pingback

Pingback from topsy.com

Twitter Trackbacks for
        
        Code Kata Cast
        [rickardnilsson.net]
        on Topsy.com

topsy.com

November 11. 2009 18:27

Johan Lindfors

Nicely done Rickard, learned a lot during this 16 minute kata!

JL

Johan Lindfors

November 11. 2009 18:28

Andrea

Nice one
You can use the R# test runner and assign a shortcut key ( i use Alt+X <X because I use xUnit> for Run Test and Alt+S for Debug)
The shortcut key saves loads of time

Andrea

November 11. 2009 18:48

Marcus Eklund

Nice one Rickard,
A bit quiet though Tong Used to the classical music the other katas have Smile

/Marcus

Marcus Eklund

November 11. 2009 23:52

Rickard

@Johan Lindfors Thanks!

@Andrea I use TestDriven.NET to run my tests because it provides rally fast feedback. I've bound Alt+T to run all tests in current context, and Alt+R to rerun last test run.

@Marcus Eklund do you know of any good royalty free music library? Wink
I'll add some on my next cast, I promise Tong

Rickard

November 12. 2009 12:40

Marcus Eklund

http://creativecommons.org/ is a good place.

Classical music is good also since that seems to be free, at least that is what is the common use of katavideos Smile

Marcus Eklund

November 12. 2009 12:49

Rickard

@Marcus Eklund Classical music is royalty free since the composer usually is dead long ago. I believe there is a time limit for copyright for 50 years from the date of release.

Rickard

November 17. 2009 15:18

trackback

ReSharper templates from the Code Kata Cast

ReSharper templates from the Code Kata Cast

Rickard Nilsson

 
Copyright © 2008-2009 rickardnilsson.net