توضیحاتی در مورد کتاب Functional Programming with C#
نام کتاب : Functional Programming with C#
ویرایش : 6th early release ed.
عنوان ترجمه شده به فارسی : برنامه نویسی کاربردی با سی شارپ
سری :
نویسندگان : Simon J. Painter
ناشر : O’Reilly
سال نشر : 2024
تعداد صفحات : 259
ISBN (شابک) : 9781492097075
زبان کتاب : english
فرمت کتاب : pdf
حجم کتاب : 2 Mb
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
توضیحاتی در مورد کتاب :
این کتاب با در نظر گرفتن چند دسته مختلف از افراد نوشته شده است:
-کسانی که نام برنامه نویسی کاربردی را شنیده اید و شاید
حتی میدانید چیست، اما میخواهید بدانید چگونه نوشتن کد را شروع کنید
به این ترتیب در سی شارپ. شاید شما یک توسعه دهنده F# هستید که به دنبال راه هایی برای این کار هستید
به استفاده از اسباببازیهای کاربردی که به آنها عادت کردهاید، ادامه دهید یا به .NET مهاجرت کنید
از زبان کاربردی یا کاربردی دیگر.
- توسعه دهندگانی که اصول دات نت و شی گرا را یاد گرفته اند
توسعه، اما می خواهید آن را بیشتر پیش ببرید. پیشرفته تر بیاموزید
تکنیک هایی برای نوشتن کد بهتر و قوی تر
-هر کسی که واقعاً عاشق کدنویسی است. اگر تمام روز را صرف نوشتن کد کنید
در دفتر، سپس به خانه بیایید تا بیشتر برای سرگرمی بنویسید، پس این کتاب است
احتمالا برای شما
فهرست مطالب :
Preface
Who Should Read This Book?
Why I wrote this book
Navigating This Book
Acknowledgments
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Dedication
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#?
Multi-Paradigm Languages
The Benefits of Functional Programming
Concise
Testable
Robust
Predictable
Better Support for Concurrency
Reduce 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
I. What Are We Already Doing?
2. What can we do already?
Getting Started
Your First Functional Code
A Non-Functional Film Query
A Functional Film Query
Results-Orientated Programming
A few words about Enumerables
Prefer Expressions to Statements
The Humble Select
Many to One - The subtle art of Aggregation
Customised Iteration Behavior
Immutability
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
Pattern Matching in C# 10
C# 11
Discriminated Unions
Active Patterns
Immutability
Read-only Structs
Init only setters
Record types
Nullable Reference Types
The Future
Summary
4. Work Smart, Not Hard with Functional Code
Let’s get Func-y
Funcs in Enumerables
A Super-Simple Validator
Pattern Matching for Old Versions of C#
Functional Filtering
Make Dictionaries More Useful
Parsing Values
Custom Enumerations
Query Adjacent Elements
Iterate Until a Condition is Met
Conclusion
II. Into the Belly of the Functional
5. Higher-Order Functions
A Problem Report
Thunks
Map Combinator
Fork Combinator
Compose
Transduce
Tap
Try/Catch
Unless
Update an Enumerable
Conclusion
6. Discriminated Unions
Holiday Time
Holidays with Discriminated Unions
Schrödinger’s Union
Naming Conventions
Database Lookup
Sending Email
Console Input
Generic Unions
Maybe
Result
Maybe vs Result
Either
Conclusion
7. Functional Flow
Maybe, Revisited
Maybe and Debugging
Maybe and Logging
Maybe and Async
Nested Maybes
The Laws
Left Identity Law
Right Identity Law
Associativity law
Reader
State
Maybe a State?
Examples You’re already using
Enumerable
Task
Other Structures
A Worked Example
Conclusion
8. Currying and Partial Application
Currying and large functions
Currying and Higher-Order functions
Currying in .NET
Partial Application
Partial Application in .NET
Conclusion
9. Indefinite Loops
Tail Recursion
Trampolining
Custom Iterator
Anatomy of an Enumerator
Implementing Custom Enumerators
Indefinitely Looping Enumerables
Using Indefinite Iterators
Conclusion
About the Author
توضیحاتی در مورد کتاب به زبان اصلی :
This book has been written with a few different catagories of people in mind:
-Those of you that have heard of Functional Programming, and perhaps
even know what it is, but want to know how to get started writing code
that way in C#. Perhaps you’re an F# developer looking for ways to
keep using the Functional toys you’re used to, or migrating to .NET
from another functional, or functional-supporting language.
-Developers that have learned the basics of .NET and Object Orientated
development, but want to take it further. Learn more advanced
techniques to write better, more robust code.
-Anyone that really, truly loves coding. If you spend all day writing code
in the office, then come home to write more for fun, then this book is
probably for you.