舉報

會員
Kotlin Standard Library Cookbook
Samuel Urbanowicz 著
更新時間:2021-07-23 19:06:49
開會員,本書免費讀 >
GiventheverbosityofJava,developershaveturnedtoKotlinforeffectivesoftwaredevelopment.TheKotlinstandardlibraryprovidesvitaltoolsthatmakeday-to-dayKotlinprogrammingeasier.Thislibraryfeaturesthecoreattributesofthelanguage,suchasalgorithmicproblems,designpatterns,dataprocessing,andworkingwithfilesanddatastreams.Therecipesinthisbookoffercodingsolutionsthatcanbereadilyexecuted.Thebookcoversvarioustopicsrelatedtodataprocessing,I/Ooperations,andcollectionstransformation.We'llwalkthrougheffectivedesignpatternsinKotlinandyou'llunderstandhowcoroutinesaddnewfeaturestoJavaScript.Asyoumakeyourwaythroughthechapters,you'lllearnhowtoimplementclean,reusablefunctionsandscalableinterfacescontainingdefaultimplementations.Intheconcludingchapters,we'llproviderecipesonfunctionalprogrammingconcepts,suchaslambdas,monads,functors,andKotlinscopingfunctions.Bytheendofthebook,you'llbeabletoaddressarangeofproblemsthatKotlindevelopersfacebyimplementingeasy-to-followsolutions.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- How it works...
- How to do it...
- Safe type-casting
- There's more...
品牌:中圖公司
上架時間:2021-07-23 17:42:14
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-07-23 19:06:49
- Other Books You May Enjoy
- How it works...
- How to do it...
- Safe type-casting
- There's more...
- How it works...
- How to do it...
- Getting ready
- Expressive try…catch declarations
- How it works...
- How to do it...
- Getting ready
- Wrapping complex type declarations with type aliases
- How it works...
- How to do it...
- Adding custom names for imports
- How it works...
- How to do it...
- Getting ready
- Decompiling Kotlin code to Java and JVM bytecode
- See also
- There's more...
- How it works...
- How to do it...
- Renaming generated functions
- There's more...
- How it works...
- How to do it...
- Getting ready
- Kotlin and JavaScript interoperability
- How it works...
- How to do it...
- Kotlin and Java interoperability
- Introduction
- Miscellaneous
- How it works...
- How to do it...
- Getting ready
- Unit tests for Kotlin coroutines
- How it works...
- How to do it...
- Getting ready
- Verifying function invocations
- See also
- How it works...
- How to do it...
- Getting ready
- Mocking dependencies with the Mockito Kotlin library
- How it works...
- How to do it...
- Getting ready
- Less boilerplate Cursor data parsing
- See also
- How it works...
- How to do it...
- Getting ready
- Easy operations on SharedPreferences
- See also
- How it works...
- How to do it...
- Getting ready
- Implementing a custom property delegate that provides lifecycle-aware values
- See also
- How it works...
- How to do it...
- Getting ready
- Easy class serialization on Android using the @Parcelize annotation
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Applying coroutines for asynchronous UI programming on Android JavaFX and Swing
- There's more...
- How it works...
- How to do it...
- Getting ready
- Clean and safe view-binding with the Android Extensions plugin
- Introduction
- Best Practices for the Android JUnit and JVM UI Frameworks
- See also
- How it works...
- How to do it...
- Getting ready
- Wrapping third-party callback-style APIs with coroutines
- See also
- How it works...
- How to do it...
- Getting ready
- Building a REST API client with Retrofit and a coroutines adapter
- See also
- How it works...
- How to do it...
- Getting ready
- Easy coroutine cancelation
- See also
- How it works...
- How to do it...
- Applying coroutines for asynchronous data processing
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Using coroutines for asynchronous concurrent tasks execution with results handling
- See also
- How it works...
- How to do it...
- Getting ready
- Using coroutines for asynchronous concurrent execution of tasks
- See also
- How it works...
- How to do it...
- Getting ready
- Background threads synchronization
- See also
- How it works...
- How to do it...
- Getting ready
- Executing tasks in the background using threads
- Introduction
- Making Asynchronous Programming Great Again
- How it works...
- How to do it...
- Getting ready
- Traversing files in a directory
- How it works...
- How to do it...
- Getting ready
- Easy file copying
- How it works...
- How to do it...
- Appending a file
- See also
- How it works...
- How to do it...
- Writing the contents to a file
- See also
- How it works...
- How to do it...
- Getting ready
- Reading the contents of a file line by line
- How it works...
- How to do it...
- Getting ready
- Ensuring stream closing with the use function
- See also
- How it works...
- How to do it...
- Getting ready
- Reading the contents of a file
- Introduction
- Friendly I/O Operations
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Implementing builders the smart way
- See also
- How it works...
- How to do it...
- Working with the Lazy delegate
- See also
- How it works...
- How to do it...
- Implementing the advanced Observer pattern by defining a custom property delegate
- See also
- How it works...
- How to do it...
- Restricting property updates with the Vetoable delegate
- See also
- How it works...
- How to do it...
- Tracking state with the Observer pattern
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Implementing delegated class properties
- See also
- How it works...
- How to do it...
- Getting ready
- Exploring the power of the Delegation pattern
- See also
- There's more...
- How it works...
- How to do it...
- Implementing the Strategy pattern
- Introduction
- Tasteful Design Patterns Adopting Kotlin Concepts
- See also
- There's more...
- How it works...
- How to do it...
- Grouping data
- There's more...
- How it works...
- How to do it...
- Folding and reducing data sets
- There's more...
- How it works...
- How to do it...
- Data transformation with map and flatMap
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Dividing data into subsets
- See also
- There's more...
- How it works...
- How to do it...
- Building strings based on dataset elements
- There's more...
- How it works...
- How to do it...
- Getting started
- Sorting data with custom comparators
- See also
- How it works...
- How to do it...
- Automatic null removal
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Filtering datasets
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Composing and consuming collections the easy way
- Introduction
- Powerful Data Processing
- There's more...
- How it works...
- How to do it...
- Approach to automatic functions memoization
- There's more...
- How it works...
- How to do it...
- Implementing the Either Monad design pattern
- How it works...
- How to do it...
- Getting ready
- Function composition
- There's more...
- How it works...
- How to do it...
- Getting ready
- Functions currying
- How it works...
- How to do it...
- Working with higher-order functions
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Initializing objects the clean way using the run scoping function
- See also
- How it works...
- How to do it...
- Getting ready
- Discovering basic scoping functions – let also apply
- There's more...
- How it works...
- How to do it...
- Getting ready
- Working effectively with lambda expressions
- Introduction
- Shaping Code with Kotlin Functional Programming Features
- There's more...
- How it works...
- How to do it...
- Getting ready
- Overloading operators
- How it works...
- How to do it...
- Getting ready
- Smart types checking with generic reified parameters
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Infix notations for functions
- There's more...
- How it works...
- How to do it...
- Getting ready
- Inlining parameters of closure type
- See also
- There's more...
- How it works...
- How to do it...
- Returning multiple data
- There's more...
- How it works...
- How to do it...
- Getting ready
- Destructuring types
- There's more...
- How it works...
- How to do it...
- Getting ready
- Extending functionalities of classes
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Declaring interfaces containing default implementations
- See also
- How it works...
- How to do it...
- Declaring adjustable functions with default parameters
- Introduction
- Expressive Functions and Adjustable Interfaces
- How it works...
- How to do it...
- Getting ready
- Applying sequences to solve algorithmic problems
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Discovering the concept of sequences
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Using range expressions with flow control statements
- How it works...
- How to do it...
- Getting ready
- Building custom progressions to traverse dates
- See also
- How it works...
- How to do it...
- Getting ready
- Traversing through ranges using progression with a custom step value
- See also
- There's more...
- How it works...
- How to do it...
- Getting ready
- Exploring the use of range expressions to iterate through alphabet characters
- Introduction
- Ranges Progressions and Sequences
- Reviews
- Get in touch
- See also
- There's more…
- How it works…
- How to do it…
- Getting ready
- Sections
- Conventions used
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the author
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Dedication
- Kotlin Standard Library Cookbook
- Copyright and Credits
- Title Page
- 封面
- 封面
- Title Page
- Copyright and Credits
- Kotlin Standard Library Cookbook
- Dedication
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Contributors
- About the author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Conventions used
- Sections
- Getting ready
- How to do it…
- How it works…
- There's more…
- See also
- Get in touch
- Reviews
- 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...
- 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...
- 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...
- 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
- 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
- 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...
- 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
- 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...
- 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
- Leave a review - let other readers know what you think 更新時間:2021-07-23 19:06:49