دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش:
نویسندگان: Samuel Urbanowicz
سری:
ISBN (شابک) : 1788837665, 9781788837668
ناشر: Packt Publishing
سال نشر: 2018
تعداد صفحات: 233
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 3 مگابایت
در صورت تبدیل فایل کتاب Kotlin Standard Library Cookbook: Master the powerful Kotlin standard library through practical code examples به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب کتاب آشپزی کتابخانه استاندارد کاتلین: از طریق نمونههای کد عملی بر کتابخانه استاندارد قدرتمند کاتلین تسلط پیدا کنید نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
با یادگیری نحوه پیاده سازی هوشمندانه کتابخانه های استاندارد، برنامه های بهینه سازی شده را در Kotlin بسازید. ویژگیهای کلیدی برای توسعه برنامههای قابل حمل با کیفیت بالا از کتابخانه Kotlin بیشترین بهره را ببرید. پشتیبانی قدرتمند برای پردازش دادهها و عملیات I/O را کشف کنید روشهایی را برای بهبود توسعه برنامه Android خود کشف کنید شرح کتاب با توجه به پرحرفی جاوا، توسعهدهندگان برای توسعه نرمافزار مؤثر به Kotlin روی آوردهاند. کتابخانه استاندارد Kotlin ابزارهای حیاتی را فراهم می کند که برنامه نویسی روزانه Kotlin را آسان تر می کند. این کتابخانه ویژگیهای اصلی زبان، مانند مسائل الگوریتمی، الگوهای طراحی، پردازش دادهها و کار با فایلها و جریانهای داده را دارد. دستور العمل های این کتاب راه حل های کدگذاری را ارائه می دهند که می توانند به راحتی اجرا شوند. این کتاب موضوعات مختلف مربوط به پردازش داده ها، عملیات I/O و تبدیل مجموعه ها را پوشش می دهد. ما الگوهای طراحی موثر را در Kotlin مرور خواهیم کرد و متوجه خواهید شد که چگونه کوروتین ها ویژگی های جدیدی را به جاوا اسکریپت اضافه می کنند. همانطور که راه خود را از طریق فصل ها طی می کنید، نحوه پیاده سازی توابع تمیز و قابل استفاده مجدد و رابط های مقیاس پذیر حاوی پیاده سازی های پیش فرض را خواهید آموخت. در فصلهای پایانی، دستورالعملهایی درباره مفاهیم برنامهنویسی کاربردی، مانند لامبداها، مونادها، تابعها و توابع محدوده کاتلین ارائه خواهیم کرد. تا پایان کتاب، میتوانید با اجرای راهحلهای آسانتر به مشکلاتی که توسعهدهندگان Kotlin با آنها مواجه هستند، رسیدگی کنید. آنچه یاد خواهید گرفت کار با محدوده، پیشرفت و توالی در موارد استفاده افزودن قابلیتهای جدید به کلاسهای فعلی با برنامههای افزودنی Kotlin درک عناصری مانند lambdas، closures و monads ساختن یک مصرفکننده API REST با Retrofit و یک آداپتور معمولی نکات و راهحلهای مفید برای ساختن پروژههای Android خود را کشف کنید. و می خواهید ویژگی ها و مفاهیم پیشرفته تری را کشف کنید، به ویژه آنهایی که توسط کتابخانه استاندارد کاتلین ارائه شده است. همچنین برای توسعه دهندگان نرم افزار با تجربه که با الگوی برنامه نویسی کاربردی و سایر زبان های برنامه نویسی آشنا هستند و می خواهند به Kotlin سوئیچ کنند ایده آل است. همچنین به توسعه دهندگان جاوا کمک می کند تا به Kotlin روی آورند و آن را در پروژه های ماشین مجازی جاوا (JVM) ادغام کنند.
Build optimized applications in Kotlin by learning how to smartly implement standard libraries. Key Features Get the most out of the Kotlin library to develop high-quality portable applications Explore the powerful support for data processing and I/O operations Discover ways to enhance your Android application development Book Description Given the verbosity of Java, developers have turned to Kotlin for effective software development. The Kotlin standard library provides vital tools that make day-to-day Kotlin programming easier. This library features the core attributes of the language, such as algorithmic problems, design patterns, data processing, and working with files and data streams. The recipes in this book offer coding solutions that can be readily executed. The book covers various topics related to data processing, I/O operations, and collections transformation. We\'ll walk through effective design patterns in Kotlin and you\'ll understand how coroutines add new features to JavaScript. As you make your way through the chapters, you\'ll learn how to implement clean, reusable functions and scalable interfaces containing default implementations. In the concluding chapters, we\'ll provide recipes on functional programming concepts, such as lambdas, monads, functors, and Kotlin scoping functions. By the end of the book, you\'ll be able to address a range of problems that Kotlin developers face by implementing easy-to-follow solutions. What you will learn Work with ranges, progressions, and sequences in use cases Add new functionalities to current classes with Kotlin extensions Understand elements such as lambdas, closures, and monads Build a REST API consumer with Retrofit and a coroutine adapter Discover useful tips and solutions for making your Android projects Explore the benefits of standard library features Who this book is for This book is for software developers who are familiar with Kotlin\'s basics and want to discover more advanced features and concepts, especially those provided by the Kotlin standard library. It\'s also ideal for experienced software developers who are familiar with the functional programming paradigm and other programming languages who want to switch to Kotlin. It will also help Java developers switch to Kotlin and integrate it into existing Java Virtual Machine (JVM) projects.
Cover Title Page Copyright and Credits Dedication Packt Upsell Contributors Table of Contents Preface Chapter 1: Ranges, Progressions, and Sequences Introduction Exploring the use of range expressions to iterate through alphabet characters Getting ready How to do it... How it works... There's more... See also Traversing through ranges using progression with a custom step value Getting ready How to do it... How it works... See also Building custom progressions to traverse dates Getting ready How to do it... How it works... Using range expressions with flow control statements Getting ready How to do it... How it works... There's more... See also Discovering the concept of sequences Getting ready How to do it... How it works... There's more... See also Applying sequences to solve algorithmic problems Getting ready How to do it... How it works... Chapter 2: Expressive Functions and Adjustable Interfaces Introduction Declaring adjustable functions with default parameters How to do it... How it works... See also Declaring interfaces containing default implementations Getting ready How to do it... How it works... There's more... See also Extending functionalities of classes Getting ready How to do it... How it works... There's more... Destructuring types Getting ready How to do it... How it works... There's more... Returning multiple data How to do it... How it works... There's more... See also Inlining parameters of closure type Getting ready How to do it... How it works... There's more... Infix notations for functions Getting ready How to do it... How it works... There's more... See also Smart types checking with generic reified parameters Getting ready How to do it... How it works... Overloading operators Getting ready How to do it... How it works... There's more... Chapter 3: Shaping Code with Kotlin Functional Programming Features Introduction Working effectively with lambda expressions Getting ready How to do it... How it works... There's more... Discovering basic scoping functions – let, also, apply Getting ready How to do it... How it works... See also Initializing objects the clean way using the run scoping function Getting ready How to do it... How it works... There's more... See also Working with higher-order functions How to do it... How it works... Functions currying Getting ready How to do it... How it works... There's more... Function composition Getting ready How to do it... How it works... Implementing the Either Monad design pattern How to do it... How it works... There's more... Approach to automatic functions memoization How to do it... How it works... There's more... Chapter 4: Powerful Data Processing Introduction Composing and consuming collections the easy way Getting ready How to do it... How it works... There's more... See also Filtering datasets Getting ready How to do it... How it works... There's more... See also Automatic null removal How to do it... How it works... See also Sorting data with custom comparators Getting started How to do it... How it works... There's more... Building strings based on dataset elements How to do it... How it works... There's more... See also Dividing data into subsets Getting ready How to do it... How it works... There's more... See also Data transformation with map and flatMap How to do it... How it works... There's more... Folding and reducing data sets How to do it... How it works... There's more... Grouping data How to do it... How it works... There's more... See also Chapter 5: Tasteful Design Patterns Adopting Kotlin Concepts Introduction Implementing the Strategy pattern How to do it... How it works... There's more... See also Exploring the power of the Delegation pattern Getting ready How to do it... How it works... See also Implementing delegated class properties Getting ready How to do it... How it works... There's more... See also Tracking state with the Observer pattern How to do it... How it works... See also Restricting property updates with the Vetoable delegate How to do it... How it works... See also Implementing the advanced Observer pattern by defining a custom property delegate How to do it... How it works... See also Working with the Lazy delegate How to do it... How it works... See also Implementing builders the smart way Getting ready How to do it... How it works... There's more... See also Chapter 6: Friendly I/O Operations Introduction Reading the contents of a file Getting ready How to do it... How it works... See also Ensuring stream closing with the use function Getting ready How to do it... How it works... Reading the contents of a file line by line Getting ready How to do it... How it works... See also Writing the contents to a file How to do it... How it works... See also Appending a file How to do it... How it works... Easy file copying Getting ready How to do it... How it works... Traversing files in a directory Getting ready How to do it... How it works... Chapter 7: Making Asynchronous Programming Great Again Introduction Executing tasks in the background using threads Getting ready How to do it... How it works... See also Background threads synchronization Getting ready How to do it... How it works... See also Using coroutines for asynchronous, concurrent execution of tasks Getting ready How to do it... How it works... See also Using coroutines for asynchronous, concurrent tasks execution with results handling Getting ready How to do it... How it works... There's more... See also Applying coroutines for asynchronous data processing How to do it... How it works... See also Easy coroutine cancelation Getting ready How to do it... How it works... See also Building a REST API client with Retrofit and a coroutines adapter Getting ready How to do it... How it works... See also Wrapping third-party callback-style APIs with coroutines Getting ready How to do it... How it works... See also Chapter 8: Best Practices for the Android, JUnit, and JVM UI Frameworks Introduction Clean and safe view-binding with the Android Extensions plugin Getting ready How to do it... How it works... There's more... Applying coroutines for asynchronous UI programming on Android, JavaFX, and Swing Getting ready How to do it... How it works... There's more... See also Easy class serialization on Android using the @Parcelize annotation Getting ready How to do it... How it works... See also Implementing a custom property delegate that provides lifecycle-aware values Getting ready How to do it... How it works... See also Easy operations on SharedPreferences Getting ready How to do it... How it works... See also Less boilerplate Cursor data parsing Getting ready How to do it... How it works... Mocking dependencies with the Mockito Kotlin library Getting ready How to do it... How it works... See also Verifying function invocations Getting ready How to do it... How it works... Unit tests for Kotlin coroutines Getting ready How to do it... How it works... Chapter 9: Miscellaneous Introduction Kotlin and Java interoperability How to do it... How it works... Kotlin and JavaScript interoperability Getting ready How to do it... How it works... There's more... Renaming generated functions How to do it... How it works... There's more... See also Decompiling Kotlin code to Java and JVM bytecode Getting ready How to do it... How it works... Adding custom names for imports How to do it... How it works... Wrapping complex type declarations with type aliases Getting ready How to do it... How it works... Expressive try…catch declarations Getting ready How to do it... How it works... There's more... Safe type-casting How to do it... How it works... Other Books You May Enjoy Index