functional-workshop

functional programming principles applied in C#


Project maintained by B1tF8er Hosted on GitHub Pages — Theme by mattgraham

Functional Programming Concepts Applied Using C#

You have been curious about all the fuss in recent years about functional programming? but have not found how to apply it in your day to day work. This post aims to give you a cheatsheet with functional concepts and techniques used in the .NET framework.

How To Build And Run

See the scripts

Themes

  1. Arrow Notation
  2. First Class Functions
  3. Higher Order Functions
  4. Pure Functions
  5. Side Effects
  6. Immutability
  7. Arity Of Functions
  8. Referential Transparency
  9. Delegates
  10. Actions
  11. Funcs
  12. Curried Functions
  13. Partial Application
  14. Lazy Evaluation / Deferred Execution
  15. Extension Methods
  16. Smart Constructors
  17. Avoid Primitive Obsession
  18. Generics
  19. LINQ
  20. Recursion

Conclusion

I hope that this post has helped you to understand more about the Functional Programming paradigm and how we can use it in our projects, to improve readability, testability and correctness of our software. Remember that FP and OOP are orthogonal and you can use the best of both worlds.

If you have any feedback or questions contact me at: ofeth@hotmail.com

Happy coding!

Useful links