Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Functional Programming in C#: add functional programming to your .NET toolbox

2,983 views

Published on

Functional Programming in C# teaches you to apply functional thinking to real-world scenarios. You’ll learn the principles of functional programming, and how they translate in the C# language.

Save 42% off Functional Programming in C# with code ssbuonanno at:
https://www.manning.com/books/functional-programming-in-c-sharp

New from manning.com

Published in: Software
  • Thanks a lot Manning for UNCOMPARABLE Explanation !!!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Functional Programming in C#: add functional programming to your .NET toolbox

  1. 1. A pragmatic approach to functional programming With Functional Programming in C# by Enrico Buonanno Save 42% with code ssbuonanno.
  2. 2. What is functional programming and how does it work in C#?
  3. 3. Functional programming (FP) is a programming paradigm. FP is a powerful collection of techniques that can help you make your C# code more concise, maintainable, expressive, robust, testable, and concurrency-friendly.
  4. 4. As opposed to Object-oriented programming (OOP), which uses objects (composed into complex hierarchies) as the basic units that a given program deals in. Functional programming (FP) also treats functions as basic units, but doesn’t compose them into hierarchies – a composition of 2 functions is simply another, more complex function. Complex task Object 1 Object 2 Object 3 Object 4 Complex function Function 1 Function 3 Function 2
  5. 5. Don’t worry! OOP and FP are not mutually exclusive approaches. FP and OOP don’t contradict each other, on the contrary, they overlap and work quite well together. FP puts more of an emphasis on functions, but a good object model is still essential - after all, functions act on objects! OOP FP
  6. 6. Don’t just think in objects, start thinking in functions and how they relate to one another! Part of learning to think functionally is seeing functions everywhere, i.e. seeing processes rather than just inputs and outputs. An example of a basic function: A blender takes oranges and converts them into orange juice.
  7. 7. Why should you learn Functional Programming in C#? • Conciseness – get the same result with fewer lines of code. • Cleaner code – easier to test and read, which greatly reduces eventual maintenance costs. • Better support for concurrency – allowing you to avoid potential major problems. • Multi-paradigm approach – broadening your programming perspective and enabling you to find more effective solutions.
  8. 8. If you are already an experienced C# developer and you want to broaden your programming abilities, write more concise code, and expand your C# skillset - this book is right for you.
  9. 9. This is just the tip of the iceberg -there’s a whole lot more inside.
  10. 10. Take your C# skills to a new level. Save 42% off Functional Programming in C# today with discount code ssbuonanno. New from manning.com

×