Have a personal or library account? Click to login
Functional C# Cover

Functional C#

Uncover the secrets of functional programming using C# and change the way you approach your applications

Paid access
|Dec 2016
Product purchase options

Uncover the secrets of functional programming using C# and change the way you approach your applications forever

Key Features

  • This book focuses on the functional paradigm of C#, which will give you a whole new angle on coding with C#
  • It illustrates the advantages that functional programming brings to the table and the associated coding benefits
  • This practical guide covers all the aspects of functional programming and provides solutions that can be applied in business scenarios

Book Description

Functional programming makes your application faster, improves performance, and increases your productivity. C# code is written at a higher level of abstraction, so that code will be closer to business requirements, abstracting away many low-level implementation details.
This book bridges the language gap for C# developers by showing you how to create and consume functional constructs in C#. We also bridge the domain gap by showing how functional constructs can be applied in business scenarios. We’ll take you through lambda expressions and extension methods, and help you develop a deep understanding of the concepts and practices of LINQ and recursion in C#.
By the end of the book, you will be able to write code using the best approach and will be able to perform unit testing in functional programming, changing how you write your applications and revolutionizing your projects.

What you will learn

  • Develop an application using the functional approach
  • Implement unit testing to functionally program code
  • Create efficient code using functional programming
  • Work through a LINQ query so you can work with data
  • Compose asynchronous programs to create a responsive application
  • Use recursion in function programming in order to simplify code
  • Optimize the program code using Laziness and Caching Techniques

Who this book is for

This book is suitable for C# developers with basic prior knowledge of C# and with no functional programming experience at all.

Table of Contents

  1. Testing functional style in C#
  2. Walkthrough Delegates
  3. Expressing an Anonymous methods with Lambda Expressions
  4. Implementing Extension Methods
  5. Querying any collection easily with LINQ
  6. Asynchronous programming
  7. Learning Recursion
  8. Avoiding the boring repetitive task with Laziness thinking
  9. Understanding Monads
  10. Developing a Functional app
  11. Coding Best Practice and testing the functional code
PDF ISBN: 978-1-78588-103-9
Publisher: Packt Publishing Limited
Copyright owner: © 2016 Packt Publishing Limited
Publication date: 2016
Language: English
Pages: 370