
۴۴٬۰۰۰تومان
نوع فایل دانلود: PDF
پس از خرید، یک فایل PDF دریافت میکنید.
این فایل با Adobe Reader، مرورگر و اپهای PDF روی کامپیوتر و موبایل باز میشود.
با مفاهیم برنامهنویسی تابعی و ماهیت تابعی زبان جاوا اسکریپت آشنا شوید. کتاب با مقدمهای بر مفاهیم برنامهنویسی تابعی آغاز میشود و تفاوتهای کلیدی میان برنامهنویسی دستوری و تابعی را میآموزید. با ورود مستقیم به توابع در جاوا اسکریپت، نحوه نوشتن آنها را با ES8 یاد خواهید گرفت. پس از آن، به سراغ توابع مرتبه بالا میروید و میبینید که چگونه رویکرد «تابع به عنوان داده» دنیایی از امکانات را به روی شما میگایشد. سپس با استفاده از بستارها (Closures)، توابع مرتبه بالا را میسازید. آرایهها معرفی میشوند و به دنبال آن مجموعهای از APIها که میتوانید با آنها استفاده کنید ارائه خواهد شد. یاد میگیرید که چگونه با استفاده از کارینگ (Currying) و اِعمال جزئی (Partial Application)، یک تابع را به تابعی دیگر تبدیل کنید. تابع ترکیب (Compose) به تفصیل بررسی میشود و پس از آن نوبت به فانکتورها و مونادها میرسد. پس از بررسی عمیق فانکتورهای کاربردی، با ویژگیهای جدید ارائه شده در ES8 آشنا خواهید شد. فصلهای پایانی کتاب «شروع جاوا اسکریپت تابعی» به شما نشان میدهند که چگونه با استفاده از ابزارهای تابعی، کتابخانه کوچکی برای توسعه اپلیکیشنهای وب بسازید و در انتها نکاتی درباره تست کردن کد تابعی خود میآموزید.
آنچه در این کتاب خواهید آموخت:
* کشف مفاهیم برنامهنویسی تابعی مانند لایهگذاری رشته و توابع ناهمگام
* درک نحوه رفتار با توابع در جاوا اسکریپت
* ساخت یک کتابخانه تابعی شبیه به Underscore.JS
* بررسی عمیق ویژگیهای تابعی ES8 مانند عملگرهای گسترش (Spread operators) و مولدها (Generators)
* ساخت کتابخانهای که با پیروی از الگوی تابعی، مشابه الگوی react-redux کار کند
این کتاب برای چه کسانی است:
توسعهدهندگان مبتدی جاوا اسکریپت.
Understand functional programming concepts and the functional nature of the JavaScript language. Starting with an introduction to functional programming concepts, you will learn the key differences between imperative and functional programming. Diving straight into JavaScript functions, you will learn to write them with ES8. Followed by this you will move to higher order functions and learn how 'Function as Data' opens up a world of possibilities.You will then build higher order functions with closures. Arrays will then be introduced, followed by a set of APIs you can use with them. You will learn how to transform one function to another using currying and partial application. The compose function will be discussed in detail, followed by functors and monads. After having an in-depth look at applicative functors, you will learn the new features offered in ES8.The concluding chapters of __Beginning Functional JavaScript__ will show you how to use a functional toolkit to build a small library that allows you to develop web applications, followed by tips on testing your functional code.**What You Will Learn*** Discover functional programming concepts such as string padding and async functions* Identify how functions are treated in JavaScript* Create a functional library that mimics Underscore.JS* Deep dive into ES8 functional features such as spread operators and generators* Create a library that works like the react-redux pattern by following the functional paradigm**Who This Book Is For**Novice JavaScript developers.