Video description
Get a new perspective on C# code using the Functional Programming approach. Write better C# code with practical examples
About This Video
- This course focuses on the functional paradigm of C#, which will give you a whole new angle on coding with C#
- Discover everything you need to know about Functional Programming, and learn how to use it in your C# code today.
- Use Functional Programming alongside existing OOP techniques so you can get the best of both worlds and develop clean, robust code
In Detail
When C# programs get more complex, they become hard to understand, and as a result are much harder to maintain. We suggest a few approaches from Functional Programming to resolve this and make the code readable, reusable, testable and structured.
This course will present some basic Functional Programming ideas and suggest how to make use of the functional features of C# in your everyday work. As C# is deeply object-oriented by design, we'll concentrate on the bits of Functional Programming that are easily applicable to it—such as LINQ, pure functions, and dot-chaining (aka composability). We won't explore functional terms such as monads and functors in too much detail; rather we provide examples of real C# using functional features. You'll improve the maintainability and testability of your application and gain the confidence to start a new project with Functional Programming paradigms.
All the code and supporting files for this course are available at: https://github.com/PacktPublishing/Hands-on-Functional-C-sharp
Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Table of contents
-
Chapter 1 : Getting to Grips with Functional C#
- The Course Overview 00:04:01
- Features of Functional Programming in C# 00:05:27
- Presenting the Books App 00:10:44
- Installation of Visual Studio Community Edition 00:03:51
-
Chapter 2 : Refactor the ‘for’ Loop
- The ‘for’ loop 00:07:25
- Defining the Pain Points of Using ‘for’ Loop 00:04:16
- Creating Your First IEnumerable 00:03:20
- Refactoring the ‘for’ Loop Using ‘foreach’ 00:03:01
-
Chapter 3 : Using LINQ
- Creating Your First LINQ Expression 00:11:51
- Lazy LINQ 00:07:10
- Implement Search by Title 00:05:21
- Closures and LINQ Pitfall 00:05:39
-
Chapter 4 : Extending LINQ
- LINQ with a Plain Old Method 00:07:22
- LINQ Extension Method 00:07:53
- Port a Method to LINQ Extension 00:05:53
-
Chapter 5 : Clean Code with Pure Functions
- Pure Functions 00:07:21
- Implement Recommend Book 00:08:37
- Refactor Global State Out 00:04:49
- Implement Select Book 00:09:52
-
Chapter 6 : Isolating the Side Effects
- Implement Delete Book 00:04:38
- Implement Add Book 00:04:01
- Push Side Effects Out 00:05:30
-
Chapter 7 : Putting the Application Together
- Writing Your First Unit Test 00:09:08
- Testing Pure Functions 00:11:19
- Dependency Injection 00:02:56
- Summary 00:02:09
Product information
- Title: Hands-On Functional C#
- Author(s):
- Release date: November 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789611397
You might also like
video
C# in Depth, 4th Ed, Video Edition
"Jon doesn’t just explain how C# works; he explains how the whole thing holds together as …
video
Design Patterns in the Real World, an Analysis-Based Approach
Alan Holub takes coders deep into the reality of Gang-of-Four design patterns, those reusable guides to …
video
Design Patterns (Clean Coders Video Series)
Overview Get ready for something very different. This ain't no screen cast. This ain't no talkin' …
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …