Functional Programming with C#

Create More Supportable, Robust, and Testable Code

Paperback Engels 2023 1e druk 9781492097075
€ 93,09
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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

Specificaties

ISBN13:9781492097075
Taal:Engels
Bindwijze:paperback
Aantal pagina's:350
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:29-9-2023
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Who Should Read This Book?
Why I Wrote This Book
Navigating This Book
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. Introduction
What Is Functional Programming?
Is It a Language, an API, or What?
The Properties of Functional Programming
Baking Cakes
An Imperative Cake
A Declarative Cake
Where Does Functional Programming Come From?
Who Else Does Functional Programming?
Pure Functional Languages
Is It Worth Learning a Pure Functional Language First?
What About F#? Should I Be Learning F#?
Multiparadigm Languages
The Benefits of Functional Programming
Concise
Testable
Robust
Predictable
Better Support for Concurrency
Reduced Code Noise
The Best Places to Use Functional Programming
Where You Should Consider Using Other Paradigms
How Far Can We Take This?
Monads Actually, Don’t Worry About This Yet
Summary

Part I. What Are We Already Doing?
2. What Can We Do Already?
Getting Started
Writing Your First Functional Code
A Nonfunctional Film Query
A Functional Film Query
Focusing on Results-Oriented Programming
Understanding Enumerables
Preferring Expressions to Statements
The Humble Select
Many to One: The Subtle Art of Aggregation
Customized Iteration Behavior
Making Your Code Immutable
Putting It All Together: A Complete Functional Flow
Taking It Further: Develop Your Functional Skills
Summary

3. Functional Coding in C# 7 and Beyond
Tuples
Pattern Matching
Procedural Bank Accounts
Pattern Matching in C# 7
Pattern Matching in C# 8
Pattern Matching in C# 9
Afgekapt op 60 regels

Managementboek Top 100

€ 93,09
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Functional Programming with C#