163 Views
Ted Neward goes through a code kata with several programming paradigms in the latest Working Programmer column. Being a coding polyglot is all the rage nowadays, and understanding multiple paradigms is essential to being a well-rounded developer. Ted goes through procedural style, modifies it to be object-oriented, demonstrates how to use meta and then dynamic programming. Finally, he makes it more functional. The proposed solution adds an aspect of functional programming, but it can be taken further.
1 comments
dpeterson
9/6/2011 9:02:34 AM
I think this is a good example of when object oriented programming can leave you with cruft. As shown in the linq query, the classes for row and column parser where completely unnecessary. I'm glad that Microsoft recognized this and put forth so much effort in making C# work equally as well as an object oriented and functional language.