• Complain

Ken Kousen - Kotlin Cookbook: A Problem-Focused Approach

Here you can read online Ken Kousen - Kotlin Cookbook: A Problem-Focused Approach full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2019, publisher: OReilly UK Limited, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Ken Kousen Kotlin Cookbook: A Problem-Focused Approach
  • Book:
    Kotlin Cookbook: A Problem-Focused Approach
  • Author:
  • Publisher:
    OReilly UK Limited
  • Genre:
  • Year:
    2019
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Kotlin Cookbook: A Problem-Focused Approach: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Kotlin Cookbook: A Problem-Focused Approach" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Use Kotlin to build Android apps, web applications, and more--while you learn the nuances of this popular language. With this unique cookbook, developers will learn how to apply thisJava-based language to their own projects. Both experienced programmers and those new to Kotlin will benefit from the practical recipes in this book.

Author Ken Kousen (Modern Java Recipes) shows you how to solve problems with Kotlin by concentrating on your own use cases rather than on basic syntax. You provide the contextand this book supplies the answers. Already big in Android development, Kotlin can be used anywhere Java is applied, as well as for iOS development, native applications, JavaScriptgeneration, and more. Jump in and build meaningful projects with Kotlin today.

  • Apply functional programming concepts, including lambdas, sequences, and concurrency
  • See how to use delegates, late initialization, and scope functions
  • Explore Java interoperability and access Java libraries using Kotlin
  • Add your own extension functions
  • Use helpful libraries such as JUnit 5
  • Get practical advice for working with specific frameworks, like Android and Spring

Ken Kousen: author's other books


Who wrote Kotlin Cookbook: A Problem-Focused Approach? Find out the surname, the name of the author of the book and a list of all author's works by series.

Kotlin Cookbook: A Problem-Focused Approach — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Kotlin Cookbook: A Problem-Focused Approach" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Kotlin Cookbook

by Ken Kousen

Copyright 2020 Ken Kousen. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Acquisitions Editors: Zan McQuade and
    Tyler Ortman
  • Development Editor: Corbin Collins
  • Production Editor: Christopher Faucher
  • Copyeditor: Sharon Wilkey
  • Proofreader: Charles Roumeliotis
  • Indexer: Ellen Troutman-Zaig
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Rebecca Demarest
  • November 2019: First Edition
Revision History for the First Edition
  • 2019-11-14: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781492046677 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Kotlin Cookbook, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-492-04667-7

[LSI]

Dedication

For Sandra, who got me through this.

Your kindness, unflagging support, and expert skills continue to change my life.

Foreword

Every few years, there is a revolutionary new language that threatens to change the way that people write software. The reality seldom lives up to the hype. Kotlin is different. Since its creation back in 2011, it has slowly, almost imperceptibly, crept its way into codebases across the world. Developers who have used Java for so long and found it lacking have been able to sneak in a little Kotlin here and there. In so doing, they have shrunk the sizeand increased the powerof their code.

Having gained some fame as the preferred language for Android development, Kotlin is now at a sufficiently mature stage that a book like this is desperately needed. With a wealth of useful tips, Kotlin Cookbook begins at the beginning. Ken shows you how to install Kotlin and configure it for your project. He shows how to run it in a Java environment, in a browser, or as a standalone application. But the book quickly moves on, solving the kind of day-to-day programming problems faced by developers and architects everywhere.

Although there is a section set aside for Kotlin testing, you will find that the book is itself test-driven. It uses tests as practical examples of how to use the language. The tests will allow you to adapt the recipes to fit your needs more precisely.

This book brings you the kind of straightforward, practical help that will guide your progress on your Kotlin journey. Its the essential how-to Kotlin guide, and every developer should keep it on their desktop (real or virtual) to support their daily work.

Dawn and David Griffiths
Authors, Head First Kotlin
October 6, 2019

Preface

Welcome to Kotlin Cookbook! The overall focus of the book is not only to teach Kotlin syntax and semantics, but also to show you when and why a particular feature should be used. The goal isnt necessarily to cover every detail of Kotlins syntax and libraries. In the end, however, many recipes on basic principles were added to make the book understandable even to readers with only a beginning level of Kotlin knowledge.

There is a strong movement by JetBrains to encourage the Kotlin community to embrace multiplatform, native, and JavaScript development. In the end, the decision was made not to include recipes involving them, since all are either in beta form or have very low adoption rates. As a result, the book concentrates exclusively on Kotlin for the JVM.

The GitHub repository for all the code can be found at https://github.com/kousen/kotlin-cookbook. It includes a Gradle wrapper (with the build file written in the Kotlin DSL, of course) and all the tests pass.

All of the code examples in the book have been compiled and tested with both available Long Term Support versions of Java, namely Java 8 and Java 11. Even though Java 8 is technically past its end-of-life deadline, it is still pervasive enough in the industry to ensure the code examples work with it. At the time of this writing, the current version of Kotlin is 1.3.50, with 1.3.60 on the way. All the code works with both versions, and the GitHub repository will frequently be updated to use the latest version of Kotlin.

Who Should Read This Book

This book is written for developers who already know the basics of object-oriented programming, especially in Java or another JVM-based language. While Java knowledge would be helpful, it isnt required.

A recipe book like this one is more focused on using the techniques and idioms of Kotlin than on being an exhaustive resource on the language. That has the advantage of using the full power of the language in any given recipe, but the disadvantage of spending only a limited time on the basics of those features. Each chapter includes a summary of the basic techniques, so if you are only vaguely familiar with how to create collections, work with arrays, or design classes, you should still be fine. The online reference manual provides a solid introduction to the language, and the book makes frequent reference to examples and discussions found there.

In addition, the book frequently dives into the implementations of features from the Kotlin libraries. Thats to show how the developers of the language work with it in practice, as well as to discuss why things are done the way they are. No prior knowledge of the implementation is expected, however, and you are free to skip those details if you are in a hurry.

How This Book Is Organized

This book is organized into recipes, and while each is self-contained, many reference others in the book. The hope is that you can read them in any particular order. That said, there is a loose ordering to the chapters, as follows:

  • covers the basic process of installing and running Kotlin, including using the REPL, working with build tools like Maven and Gradle, and employing the native image generator in Graal.

  • covers some fundamental features of Kotlinsuch as nullable types, overloading operators, and converting between typesbefore examining some more esoteric issues including working with bitwise shift operators or the to extension function on the Pair class.

  • focuses on object-oriented features of the language that developers from other languages might find surprising or unusual. It includes how to use the const keyword, how Kotlin handles backing properties, delayed initialization, and the dreaded Nothing class, which is guaranteed to confuse existing Java developers.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Kotlin Cookbook: A Problem-Focused Approach»

Look at similar books to Kotlin Cookbook: A Problem-Focused Approach. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Kotlin Cookbook: A Problem-Focused Approach»

Discussion, reviews of the book Kotlin Cookbook: A Problem-Focused Approach and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.