Автор: Simon J. Painter
Издательство: O’Reilly Media, Inc.
Год: 2023
Страниц: 434
Язык: английский
Формат: pdf, mobi, epub (true)
Размер: 22.2 MB
After decades of relative obscurity, functional programming is finally coming into its own. With concise, easy-to-read code that supports asynchronous, concurrent processing, aspects of functional programming have begun to appear in several traditionally object-oriented languages such as C# and Java. This practical book shows C# programmers how to use functional programming features without having to navigate an entirely new language.
Because of the shared runtime environment common to C# and F# languages, it's possible to use most of F#'s functional features in C# as well. Author Simon J. Painter explains how you can write functional code in C# right away, without having to install dependencies or features newer than .NET 3. You'll learn why functional programming concepts can bring immediate benefit to your work.
• Learn what functional programming is and how it originated
• Discover features of the functional paradigm using a more familiar language
• Start coding functionally in C# right away, without relying on third-party libraries
• Write code that's more robust, less error prone, and easier to test
• Examine less conventional ways to look at structures available in C#
• Explore the practicalities of using functional C# in a business environment
Who Should Read This Book?
This book is intended for developers—whether professional, student, or hobbyist—who already have a basic grounding in C#. You don’t need to be an expert but do need to be familiar with the basics and feel comfortable putting together at least a relatively simply C# application. Some more advanced .NET topics are covered, but I’ll provide explanations when they come up. This book has been written with a few categories of people in mind:
• Those of you who have learned the basics of C# but want to find ways to take your learning further via more advanced techniques for writing better, more robust code.
• .NET developers who have heard of FP and perhaps even know what it is, but want to know how to get started writing code that way in C#.
• F# developers looking for ways to keep using the functional toys you’re used to.
• Those migrating to .NET from another functional, or functional-supporting, language (like Java).
• Anyone who really, truly loves coding. If you spend all day writing code in the office, then come home to write more for fun, this book is probably for you.
Скачать Functional Programming with C#: Create More Supportable, Robust, and Testable Code (Final)