I implemented the FizzBuzz katas twice in C#. The first time was straight OO implementation with an evolution towards the chain of command pattern. I also implemented some new rules, to show the extensibility of the implementation.
The second time, I wanted to experiment with the function capacities of C#, and implemented the chain of command without additional objects, but with lambdas.
It was an interesting experiment.
Code available on my Bitbucket.
Comments powered by Disqus