Cargando…

Introducing functional programming using C# : leveraging a new perspective for OOP developers /

Understand the power of C#, a multi-paradigm language. This book will help you learn, analyze, and harness the functional aspects of C# so you can create a better program. The book is divided into two parts. Part I starts with an overview of functional programming (FP). It covers the building blocks...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Sarcar, Vaskaran (Autor)
Formato: eBook
Idioma:Inglés
Publicado: Berkeley, CA : Apress L. P., 2023.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)

MARC

LEADER 00000cam a22000007a 4500
001 OR_on1397571297
003 OCoLC
005 20231017213018.0
006 m o d
007 cr cnu||||||||
008 230916s2023 cau o 000 0 eng d
040 |a EBLCP  |b eng  |c EBLCP  |d ORMDA  |d GW5XE  |d YDX  |d EBLCP  |d OCLCO 
019 |a 1396974671 
020 |a 9781484296974  |q (electronic bk.) 
020 |a 1484296974  |q (electronic bk.) 
020 |z 9781484296967 
020 |z 1484296966 
024 7 |a 10.1007/978-1-4842-9697-4  |2 doi 
029 1 |a AU@  |b 000075216968 
035 |a (OCoLC)1397571297  |z (OCoLC)1396974671 
037 |a 9781484296974  |b O'Reilly Media 
050 4 |a QA76.76.M52 
072 7 |a UMP  |2 bicssc 
072 7 |a COM051380  |2 bisacsh 
072 7 |a UMP  |2 thema 
082 0 4 |a 005.13/3  |2 23/eng/20230919 
049 |a UAMI 
100 1 |a Sarcar, Vaskaran,  |e author. 
245 1 0 |a Introducing functional programming using C# :  |b leveraging a new perspective for OOP developers /  |c Vaskaran Sarcar. 
260 |a Berkeley, CA :  |b Apress L. P.,  |c 2023. 
300 |a 1 online resource (314 p.) 
500 |a Description based upon print version of record. 
505 0 |a Intro -- Table of Contents -- About the Author -- About the Technical Reviewers -- Acknowledgments -- Introduction -- How Is This Book Organized? -- Prerequisite Knowledge -- Who Is This Book For? -- Useful Software -- Guidelines for Using This Book -- Source Code -- Conventions Used in This Book -- Final Words -- Part I: Getting Familiar with Functional Programming -- Chapter 1: Functional Programming Overview -- C# Supports Multiple Paradigms -- Functions and Methods Are Equivalent in C# -- QA Session -- Important Characteristics of FP -- FP Treats Functions as First-Class Citizens 
505 8 |a Demonstration 1 -- Output -- Analysis -- FP Prefers Immutability -- Demonstration 2 -- Output -- Q&A Session -- Demonstration 3 -- Output -- Analysis -- FP Prefers Pure Functions -- Demonstration 4 -- Output -- Discussion of Side Effects -- Functions with I/O -- Are Side Effects Bad? -- Q&A Session -- FP Follows a Declarative Style -- Demonstration 5 -- Output -- Demonstration 6 -- Output -- Q&A Session -- Demonstration 7 -- Output -- FP vs. OOP -- FP Benefits -- Q&A Session -- Exercises -- Summary -- Solutions to Exercises -- E1.1 -- E1.2 -- E1.3 -- E1.4 -- E1.5 -- E1.6 -- E1.7 -- E1.8 
505 8 |a Chapter 2: Understanding Functions -- Mathematical Background of Functions -- Mathematical Functions vs. C# Functions -- Representing Functions in C# -- Using Static Methods -- Demonstration 1 -- Output -- Simplifying the Code -- QA Session -- Using Delegates and Lambdas -- A Quick Review -- Demonstration 2 -- Output -- Additional Note -- Using a Dictionary -- Demonstration 3 -- Output -- QA Session -- Demonstration 4 -- Built-in Delegates Are Important -- Higher-Order Function -- Custom HOF -- Demonstration 5 -- Output -- Additional Note -- Built-in HOF -- Demonstration 6 -- Output -- Analysis 
505 8 |a First-Order Function -- Refactoring Impure Functions -- Program with Impurities -- Demonstration 7 -- Output -- Removing Impurities -- Demonstration 8 -- Output -- Additional Note -- Q&A Session -- Exercises -- Summary -- Solutions to Exercises -- E2.1 -- E2.2 -- E2.3 -- E2.4 -- E2.5 -- E2.6 -- Chapter 3: Understanding Immutability -- What Is Immutability? -- Immutable Objects in .NET -- Q&A Session -- Reviewing Mutable Types -- Programming with a Mutable Type -- Demonstration 1 -- Output -- Analysis -- The Path Toward Immutability -- Achieving External Immutability -- Demonstration 2 -- Output 
505 8 |a Enforcing Internal Immutability -- Demonstration 3 -- Output -- Better Code Using Modern Features -- Demonstration 4 -- Output -- Q&A Session -- More on Immutability -- Understanding Shallow Immutability -- Demonstration 5 -- Output -- Analysis -- Searching for a Solution -- Demonstration 6 -- Output -- Analysis -- Making a Better Solution -- Demonstration 7 -- Output -- Analysis -- Implementing Popsicle Immutability -- Demonstration 8 -- Output -- Analysis -- Q&A Session -- Exercises -- Summary -- Solutions to Exercises -- E3.1 -- E3.2 -- E3.3 -- E3.4 -- E3.5 
500 |a Part II: Harnessing the Power of Functional Programming 
520 |a Understand the power of C#, a multi-paradigm language. This book will help you learn, analyze, and harness the functional aspects of C# so you can create a better program. The book is divided into two parts. Part I starts with an overview of functional programming (FP). It covers the building blocks for FP: functions and immutability. You will learn about the built-in supports for FP, first- and higher-order functions (HOF), functional purity and side effects, different forms of immutability, and much more. Part II includes discussions on functional composition using pipelining and currying. It also explains how to handle temporal coupling and discusses partial functions and useful functional patterns (such as Map, Bind, Filter, and Fold). Author Vaskaran Sarcar takes you through functional exception-handling mechanisms and provides additional tips to make your programs more efficient. After reading the book, you will understand and be able to implement key aspects of FP. You will be able to produce better code (and refactor existing code) by combining the best techniques from both FP and object-oriented programming (OOP) paradigms. What Will You Learn Understand how the concepts of functional programming (FP) can be implemented using C# Refactor existing code (following the FP paradigm) to make it more readable, maintainable, and predictive Know how advanced features (such as delegates, lambdas, generics) can be used differently Understand how to efficiently use features such as lambda expressions and type inference as C# includes explicit language extensions to support functional programming Who This Book Is For C# developers familiar with object-oriented programming (OOP) who want to harness the power of functional programming (FP). 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
650 0 |a C# (Computer program language) 
650 0 |a Functional programming (Computer science) 
650 6 |a C# (Langage de programmation) 
650 6 |a Programmation fonctionnelle. 
655 0 |a Electronic books. 
776 0 8 |i Print version:  |a Sarcar, Vaskaran  |t Introducing Functional Programming Using C#  |d Berkeley, CA : Apress L. P.,c2023  |z 9781484296967 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781484296974/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL30736812 
938 |a YBP Library Services  |b YANK  |n 305697758 
994 |a 92  |b IZTAP