
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
تصور کنید کد جاوایی بنویسید که مثل خود صورتمسئله خوانده شود؛ کدی بسیار رسا، کوتاه، خوانا و قابل تغییر، با پیچیدگی کمتر. با قابلیتهای برنامهنویسی تابعی در جاوا، این دیگر خیال نیست. این کتاب شما را از سبک امریِ آشنا، با مثالهای فراوان، به جنبههای عملی برنامهنویسی تابعی میبرد. تکنیکهایی را که یاد میگیرید بهکار ببندید و کد امریِ بسیار پیچیده را به کدی شیک و فهمیدنی به سبک تابعی تبدیل کنید. این ویرایش با آخرین نسخهٔ جاوا بهروز شده و چهار فصل تازه دارد دربارهٔ مدیریت خطا، بازنویسی به سبک تابعی، تبدیل داده، و اصطلاحات رایج برنامهنویسی تابعی. با محدودیتهای سبک امری دستوپنجه نرم نکنید؛ بهجایش یاد بگیرید برنامهنویسی شیءگرا را با سبک تابعی ترکیب کنید تا پیچیدگیهای ناخواسته کمتر شود. از قابلیتهای برنامهنویسی تابعی جاوا بهره بگیرید و برنامههایی بسازید که نیت خود را نشان دهند و تیمتان بتواند سریع بفهمد و با تغییر نیازهای کسبوکار همراستا کند. قدرت عبارتهای لامبدا و Streams API را آزاد کنید و کدهای درهموبرهمِ همیشگی را به کدی کوتاه، رسا، شیک و قابل نگهداری تبدیل کنید. ببینید چگونه Streams کار سخت موازیسازی کد را، وقتی سرعت بیشتر لازم است، بهسادگیِ زدن یک کلید میکند. الگوهای طراحی مبتنی بر عبارتهای لامبدا را بهکار ببرید، تخصیص منابع را بهصورت امن مدیریت کنید، از یادسپاری (memoization) استفاده کنید، و یاد بگیرید داده را به شکلهای مختلف تبدیل کنید؛ همهاینها در حالی که تغییرناپذیری را رعایت میکنید و ایمنی نخ را فراهم میآورید تا از ارزیابی تنبل برای کارایی و اجرای موازی برای عملکرد بهره ببرید. از مبانی فراتر بروید و اصطلاحات نوشتن برنامههای تابعی را بشناسید. با بازنویسی کد قدیمی به سبک تابعی، فکر کردن به شیوهٔ تابعی را بیاموزید. و اگر کدتان بهخاطر خطاها گیر کرد، یاد بگیرید خطاها را به روش تابعی درست مدیریت کنید. در نظریه غرق نشوید؛ بهجایش تکنیکهای عملی برنامهنویسی تابعی را یاد بگیرید تا کد جاوای بهتری بنویسید. آنچه نیاز دارید: جاوا نسخهٔ ۸ یا جدیدتر.
Imagine writing Java code that reads like the problem statement, code that's highly expressive, concise, easy to read and modify, and has reduced complexity. With the functional programming capabilities in Java, that's not a fantasy. This book will guide you from the familiar imperative style through the practical aspects of functional programming, using plenty of examples. Apply the techniques you learn to turn highly complex imperative code into elegant and easy-to-understand functional-style code. Updated to the latest version of Java, this edition has four new chapters on error handling, refactoring to functional style, transforming data, and idioms of functional programming. Don't struggle with the limitations of the imperative style; instead learn to combine object-oriented programming with the functional style to reduce the accidental complexity. Harness the functional programming capabilities of Java to create applications where the program reveals its intentions and your team can quickly understand and modify code to align with changing business requirements. Unlock the power of lambda expressions and the Streams API to turn the oft-written spaghetti code into highly concise, expressive, elegant, and maintainable code. See how Streams make the arduous task of parallelizing code as easy as flipping a switch when superior speed is necessary. Apply design patterns built around lambda expressions, safely manage resource allocations, use memoization, and learn to transform data into different forms, all while honoring immutability, and providing thread safety to leverage lazy evaluation for efficiency and parallel execution for performance. Move beyond the basics, explore the idioms for writing functional programs. Learn to think functionally by refactoring legacy code into the functional style. And, if your code runs aground due to failures, learn to properly handle errors the functional way. Don't drown in theory; instead learn the practical functional programming techniques to create superior Java code. What You Need: Java version 8 or newer.