Posts tagged best practices
Calculating the Fibonacci Sequence with C# 3.0
Jan 24th
Scott Hanselman just posted his latest article in his weekly source code series. He shows various ways of producing the Fibonacci Sequence using various languages. I found it really interesting, for two reasons:
- I tried to do the C#3.0 one on my own after listening to a podcast about F#, and never could work it out. (Doh!)
- It makes me question what I thought about coding.
You see, I spend a lot of time refactoring. Sometimes too much. I have to ask myself why. It’s usually so that I can come back to the code later, and still understand what I was trying to do. Most of the time, conciser is better. But not always!
And that’s what I see in this post.