
۴۴٬۰۰۰تومان
نوع فایل دانلود: PDF
پس از خرید، یک فایل PDF دریافت میکنید.
این فایل با Adobe Reader، مرورگر و اپهای PDF روی کامپیوتر و موبایل باز میشود.
برنامهنویسی واکنشی انقلابی است. برنامهنویسی ناهمگام را تمیزتر، شهودیتر و مقاومتر میکند. بیاموزید چطور با کتابخانه RxJS برنامهها را سادهتر بنویسید و سازوکارهای ناهمگامی مثل callback و promise را در یک ساختار واحد و قدرتمند یکپارچه کنید. یاد بگیرید برنامههایتان را بهصورت جریانهایی از داده ببینید که میتوانید آنها را با بیان __چه چیزی__ باید رخ دهد دگرگون کنید، نه اینکه با زحمت زیاد __چگونه__ رخ دادنش را برنامهنویسی کنید. میتوانید همزمانی واقعی را مدیریت کنید و جریانهای پیچیده رویداد را در برنامههایتان بهراحتی بنویسید.
با استفاده از Reactive Extensions for JavaScript (RxJS) — مجموعهای از کتابخانهها برای ترکیب رویدادها — برنامههایی با همزمانی بالا بسازید، در حالی که کد سادهتری مینویسید. برنامهنویسی برنامههای واقعی با جاوااسکریپت پر از رویدادهای ناهمگام است؛ ممکن است بیشتر وقتتان صرف هماهنگ کردن کد ناهمگام شود تا نوشتن خودِ قابلیتها. این کتاب مفاهیم و ابزارهایی از برنامهنویسی واکنشی را معرفی میکند که کمک میکنند برنامههای ناهمگام تمیزتر و مقاومتری بنویسید.
با توالیهای Observable آشنا شوید؛ نوعی داده یکپارچهساز برای نوشتن کد با همزمانی بالا. با Schedulerها آشنا شوید و مفهوم زمان را در برنامههایتان تغییر دهید تا تست ناهمگام دوباره منطقی و قابلتحمل شود. در مسیر کتاب، نمونههای واقعی برای مرورگر و Node.js میبینید؛ از جمله نمایش لحظهای زلزله در ۲۰ خط کد و یک بازی فضایی تیراندازی پرهیجان. همچنین با Cycle.js — یک فریمورک وب مدرن و کاملاً واکنشی — آشنا میشوید تا نسل تازهای از برنامههای وب بسازید.
در پایان کتاب میدانید چطور با برنامهنویسی واکنشی مسائل پیچیده را حل کنید، برنامههای کارآمد با رابط کاربری واکنشی بسازید و کدتان را بیشتر بهصورت اعلانی بنویسید.
**آنچه نیاز دارید:** یک مرورگر وب مدرن، نصب Node.js روی رایانه، و کتابخانه جاوااسکریپت RxJS.
Reactive programming is revolutionary. It makes asynchronous programming cleaner, intuitive, and robust. Discover how to use the RxJS library to write programs in a simpler way, unifying asynchronous mechanisms such as callbacks and promises into a single, powerful construct. Learn to think about your programs as streams of data that you can transform by expressing __what__ should happen, instead of having to painstakingly program __how__ it should happen. You'll be able to handle real-world concurrency and write complex flows of events in your applications with ease.Create highly concurrent applications while writing simpler code using the Reactive Extensions for JavaScript (RxJS), a set of libraries for event composition. Programming real-world applications in JavaScript involves lots of asynchronous events--you might end up spending more time coordinating asynchronous code in your program than writing its actual functionality. This book introduces concepts and tools from reactive programming that will help you write cleaner and more robust asynchronous programs.Find out about Observable sequences, a unifying data type to write highly concurrent code. Discover Schedulers and change the concept of time in your applications, making asynchronous testing sane again. Along the way you'll see real-world examples for the browser and Node.js, including a real-time earthquake visualization in 20 lines of code and a frantic shoot-'em-up space videogame. You'll also use Cycle.js - a modern, fully reactive web framework - to make a whole new breed of web applications.By the end of the book, you'll know how to apply reactive programming to solve complex problems, build efficient programs with reactive user interfaces, and write your code more declaratively.**What You Need:**A modern web browser, Node.JS installed in your computer, and the RxJS JavaScript library.