
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
لیترالهای تابع، مونادها، ارزیابی تنبل، کاریینگ و بیشتر
درباره این کتاب
با استریمها و توابع مرتبه بالا، کدی مختصر و نگهداریپذیر بنویسید.
مزایای کاریینگ کردن توابع Golang را بشناسید.
مؤثرترین الگوهای طراحی برنامهنویسی تابعی را یاد بگیرید و بدانید هر کدام را چه زمانی به کار ببرید.
راهحلهای توزیعشده MapReduce را با Go بسازید.
این کتاب برای چه کسانی است
این کتاب برای توسعهدهندگان Golang است که با برنامهنویسی شیگرا راحتاند و میخواهند پارادایم تابعی را برای ساخت اپلیکیشنهای پایدار و قابلتست به کار ببرند. تجربه قبلی برنامهنویسی با Go مفید است، اما الزامی نیست.
چه چیزهایی یاد میگیرید
یاد بگیرید چگونه با توابع مرتبه بالا، اپلیکیشنهای قابلاعتماد بسازید.
با تکنیکهای برنامهنویسی تابعی مثل کاریینگ، راههای حذف اثرات جانبی را بررسی کنید.
با توابع درجه یک، توابع خالص پیادهسازی کنید.
بفهمید چگونه یک عبارت لامبدا را در Go پیاده کنید.
با الگوی دکوراتور، یک اپلیکیشن کاربردی بسازید.
با ارزیابی تنبل، برنامههای سریعتری بنویسید.
با سازههای همزمانی Go، یک خط لوله عملکردی بسازید.
نظریه ردهها را بشناسید و ببینید چه ربطی به برنامهنویسی تابعی دارد.
با جزئیات بیشتر
برنامهنویسی تابعی یک پارادایم محبوب است که بسیاری از کارها را سادهتر میکند و به شما کمک میکند کدی انعطافپذیر و مختصر بنویسید. با آن میتوانید برنامههایتان را به اجزای کوچکتر و بسیار قابلاستفاده مجدد بشکنید، بدون اینکه محدودیت مفهومی سختی روی نحوه ماژولار شدن نرمافزار بگذارید. این کتاب شکاف زبانی را برای توسعهدهندگان Golang پر میکند و نشان میدهد چگونه سازههای تابعی را در Golang بسازید و به کار ببرید. کتاب به چهار بخش تقسیم شده است. بخش اول سبک برنامهنویسی تابعی را توضیح میدهد؛ برنامهنویسی تابعی خالص (FP)، کار با مجموعهها و استفاده از توابع مرتبه بالا. در بخش دوم، الگوهای طراحیای را یاد میگیرید که برای ساخت اپلیکیشنهای به سبک برنامهنویسی تابعی به کار میآیند. در بخش بعد، تکنیکهای برنامهنویسی تابعی را میآموزید که امضای APIها را بهتر میکنند، عملکرد را بالا میبرند و به ساخت اپلیکیشنهای بهتر کلاد-نیتیو کمک میکنند. بخش آخر به پایههای برنامهنویسی تابعی میپردازد و با معرفی نظریه ردهها برای توسعهدهندگان نرمافزار، درک واقعی از برنامهنویسی تابعی خالص میدهد، همراه با نمونههای کد کاربردی. در پایان کتاب، در ساخت اپلیکیشنها به شیوه تابعی مهارت پیدا میکنید.
سبک و رویکرد
این کتاب رویکردی کاربردی دارد و تکنیکهایی برای نوشتن سازههای تابعی بهتر در Golang نشان میدهد.
Function literals, Monads, Lazy evaluation, Currying, and more About This Book Write concise and maintainable code with streams and high-order functions Understand the benefits of currying your Golang functions Learn the most effective design patterns for functional programming and learn when to apply each of them Build distributed MapReduce solutions using Go Who This Book Is For This book is for Golang developers comfortable with OOP and interested in learning how to apply the functional paradigm to create robust and testable apps. Prior programming experience with Go would be helpful, but not mandatory. What You Will Learn Learn how to compose reliable applications using high-order functions Explore techniques to eliminate side-effects using FP techniques such as currying Use first-class functions to implement pure functions Understand how to implement a lambda expression in Go Compose a working application using the decorator pattern Create faster programs using lazy evaluation Use Go concurrency constructs to compose a functionality pipeline Understand category theory and what it has to do with FP In Detail Functional programming is a popular programming paradigm that is used to simplify many tasks and will help you write flexible and succinct code. It allows you to decompose your programs into smaller, highly reusable components, without applying conceptual restraints on how the software should be modularized. This book bridges the language gap for Golang developers by showing you how to create and consume functional constructs in Golang. The book is divided into four modules. The first module explains the functional style of programming; pure functional programming (FP), manipulating collections, and using high-order functions. In the second module, you will learn design patterns that you can use to build FP-style applications. In the next module, you will learn FP techniques that you can use to improve your API signatures, to increase performance, and to build better Cloud-native applications. The last module delves into the underpinnings of FP with an introduction to category theory for software developers to give you a real understanding of what pure functional programming is all about, along with applicable code examples. By the end of the book, you will be adept at building applications the functional way. Style and approach This book takes a pragmatic approach and shows you techniques to write better functional constructs in Golan ..