Zen and Functional C#

Henrick Tissink on August 29, 2019

Writing functional programming can induce a Zen like experience. With clean, short blocks of code that reveal their intent and inner workings plain... [Read Full]
markdown guide
 

Hi Henrick, really good article, I'm going to start putting this into practice!

Also noticed the sample code 'public void PriceOfFood...' should return double.

Cheers

 

Hi Ferdeen, I really appreciate the positive feedback, thank you so much!

And well spotted - fixed it :]

 

No problem!

Was checking where I commented on the typo and could see a couple more void returns that should also return double. They are towards the top of the post.

Cheers!

Oh jeez - I checked the writing for typos but not the code - thanks again :]

No worries. It doesn't take anything away from such a good post, and I'll look forward to reading more of your work. Cheers.

 

For a janitor, you really know a lot. You're like the Will Hunting of programming

willhunting

 
 

Love this. I get jaded about the language I code in professionally; sees C# is steeped in methodolody that is counterintuitive to what is being achieved.

 

Thanks Jimmy - yes exactly. The .Net team have added so much functionality to C# that you don't always know how to use it sometimes. Sticking to a clean functional approach helps; and it's a lot of fun switching your thinking from procedural to functional.

code of conduct - report abuse