- Shopping Bag ( 0 items )
Functional Programming in C# provides a unique and fresh approach to programming in C#. The book focuses on providing solutions to real development problems with functional programming methods. Inside, C# expert and MVP Oliver Sturm explains the details of relevant language features in C# and describes the theory and practice of using functional techniques in C#. Sturm provides practical and versatile examples, which combine...
Functional Programming in C# provides a unique and fresh approach to programming in C#. The book focuses on providing solutions to real development problems with functional programming methods. Inside, C# expert and MVP Oliver Sturm explains the details of relevant language features in C# and describes the theory and practice of using functional techniques in C#. Sturm provides practical and versatile examples, which combine approaches to solve problems in several different areas, including complex scenarios like concurrency and high-performance calculation frameworks as well as simpler use cases like Web Services and business logic implementation. Functional Programming in C# will help programmers find a solution without leaving their programming language and show them the benefits and limitations of C# programming with the primary aim of helping programmers make the most out of what they already know.
Functional Programming in C#:
Demonstrates how to use currying to convert multi-parameter functions into function chains
Walks you through using the function construction techniques of partial application and composition to create specialized functions out of general-purpose curried function chains
Provides coverage of memoization and its use for caching of previously retrieved or calculated return values
Details the use of monads in functional programming and shows you their relevance to C# programming as well as practical implementations and their limits
wrox.com Programmer Forums
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved.
PART I: INTRODUCTION TO FUNCTIONAL PROGRAMMING.
CHAPTER 1: A LOOK AT FUNCTIONAL PROGRAMMING HISTORY.
CHAPTER 2: PUTTING FUNCTIONAL PROGRAMMING INTO A MODERN CONTEXT.
PART II: C# FOUNDATIONS OF FUNCTIONAL PROGRAMMING.
CHAPTER 3: FUNCTIONS, DELEGATES, AND LAMBDA EXPRESSIONS.
CHAPTER 4: FLEXIBLE TYPING WITH GENERICS.
CHAPTER 5: LAZY LISTING WITH ITERATORS.
CHAPTER 6: ENCAPSULATING DATA IN CLOSURES.
CHAPTER 7: CODE IS DATA.
PART III: IMPLEMENTING WELL-KNOWN FUNCTIONAL TECHNIQUES IN C#.
CHAPTER 8: CURRYING AND PARTIAL APPLICATION.
CHAPTER 9: LAZY EVALUATION.
CHAPTER 10: CACHING TECHNIQUES.
CHAPTER 11: CALLING YOURSELF.
CHAPTER 12: STANDARD HIGHER ORDER FUNCTIONS.
CHAPTER 13: SEQUENCES.
CHAPTER 14: CONSTRUCTING FUNCTIONS FROM FUNCTIONS.
CHAPTER 15: OPTIONAL VALUES.
CHAPTER 16: KEEPING DATA FROM CHANGING.
CHAPTER 17: MONADS.
PART IV: PUTTING FUNCTIONAL PROGRAMMING INTO ACTION.
CHAPTER 18: INTEGRATING FUNCTIONAL PROGRAMMING APPROACHES.
CHAPTER 19: THE MAPREDUCE PATTERN.
CHAPTER 20: APPLIED FUNCTIONAL MODULARIZATION.
CHAPTER 21: EXISTING PROJECTS USING FUNCTIONAL TECHNIQUES.
Posted October 10, 2011
I picked up "Functional Programming in C#" because I was interested in exploring methods for writing cleaner, more efficient code and possible insights into techniques that I could use to solve problems in my daily work. I expected the book to be technically heavy and I was right. This book is not for beginners.
In general, the book tries to teach functional concepts but a side effect is the reader gets an exceptional look at the C# language, its features and how it works. For example, the "Code as Data" chapter covers expression trees and their structures. The first few chapters also give nice coverage to .NET features such as covarience and contravarience with generics. At first glance I thought it was redundant, but I soon realized that it's required knowledge in order to take advantage of the proposed techniques.
There are a few chapters on functional techniques to solve common issues like caching and logging that I would disagree with implementing in a C# application in favor of OOP powered by an AOP framework. However, despite that fact, the insight gained from studying the functional techniques is well worth the read. I recommend this book for anyone looking for a fresh approach to solving problems in their code.
2 out of 2 people found this review helpful.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted January 10, 2012
I would recommend this book for advanced programmers.
Functional programming is slowly picking up and Microsoft has done a very good use of functional programming in the C# language.
The author explains various functional programming concepts like covariance, contravariance, currying etc.
After reading the book you will get good insight on some of the .Net underlying functional aspects and you will be a better programmer.
1 out of 1 people found this review helpful.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted September 4, 2012
No text was provided for this review.