Making It More Functional(www.kodefuguru.com)

submitted by KodefuGuruKodefuGuru(2818) 8 months, 23 days ago

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 comment |category: |Views: 47

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 8 months, 19 days ago 0

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.

Reply

information Login or create an account to comment on this story