Book description
Get to know the building blocks of Kotlin and best practices when using quality world-class applications
About This Book
- Learn to build exciting and scalable Android and web applications (both the server-side and client-side parts) with your Kotlin skills
- Dive into the great ecosystem of Kotlin frameworks and libraries through projects that you'll build using this book
- This project-based guide contains clear instructions to help you extend your applications across a wide domain
Who This Book Is For
This practical guide is for programmers who are already familiar with Kotlin. If you are familiar with Kotlin and want to put your knowledge to work, then this is the book for you. Kotlin programming knowledge is a must.
What You Will Learn
- See how Kotlin's power and versatility make it a great choice to create applications across various platforms, and how it delivers business and technology benefits
- Write a robust web applications using Kotlin with Spring Boot
- Write Android applications with ease using Kotlin
- Write rich desktop applications in Kotlin
- Learn how Kotlin can generate Javascript and how this can be used on client side and server side development
- Understand how native applications can be written with Kotlin/Native
- Learn the practical aspects of programming in each of the applications
In Detail
Kotlin is a powerful language that has applications in a wide variety of fields. It is a concise, safe, interoperable, and tool-friendly language. The Android team has also announced first-class support for Kotlin, which is an added boost to the language. Kotlin's growth is fueled through carefully designed business and technology benefits.
The collection of projects demonstrates the versatility of the language and enables you to build standalone applications on your own. You'll build comprehensive applications using the various features of Kotlin. Scale, performance, and high availability lie at the heart of the projects, and the lessons learned throughout this book.
You'll learn how to build a social media aggregator app that will help you efficiently track various feeds, develop a geospatial webservice with Kotlin and Spring Boot, build responsive web applications with Kotlin, build a REST API for a news feed reader, and build a server-side chat application with Kotlin.
It also covers the various libraries and frameworks used in the projects. Through the course of building applications, you'll not only get to grips with the various features of Kotlin, but you'll also discover how to design and prototype professional-grade applications.
Style and approach
Each chapter is independent and focuses on a unique technology, where Kotlin is used to build an example application. Together the chapters cover a full spectrum.
Table of contents
- Preface
- The Power of Kotlin
- Geospatial Messenger – Spring Boot
-
Social Media Aggregator Android App
- Setting up Kotlin
-
Creating a social media aggregator
- Using datatypes and conversion
- String interpolation
- Classes
- lateinit versus lazy initialization
- Control flow
- Getters and setters
- Interfaces
- Kotlin Android extension
- Functions in Kotlin
- Android context
- Null-Safety
- Smart casts
- Companion object
- Dealing with constants
- Object expressions and declarations
- Delegated properties
- Setting up an item click on RecyclerView
- Anko - Kotlin's buddy for Android
- Summary
- Weather App Using Kotlin for JavaScript
-
Chat Application with Server-Side JavaScript Generation
- Creating our first Node.js app using Kotlin
-
Creating a chat application
- Setting up the Node.js server
- Specifying the output files
- Specifying the router
- Starting the node server
- Creating a login page
- Lambda functions
- Reading the nickname
- Passing nickname to the server
- Establishing a socket connection
- Showing a list of online users
- Sending and receiving a message
- Disconnecting a socket
- Styling the page using CSS
- Summary
- News Feed – REST API
- CSV Reader in Kotlin Native
- Dictionary Desktop Application - TornadoFX
Product information
- Title: Kotlin Blueprints
- Author(s):
- Release date: December 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788390804
You might also like
video
Gradle for Android
Whether you’re new to Gradle or an experienced Android developer, Java consultant Ken Kousen will help …
video
Moving to Java 9: Better Design and Simpler Code
4+ Hours of Video Instruction Java 9 introduces new features and functions that will make your …
book
Android Studio Arctic Fox Essentials - Kotlin Edition
A simple approach to developing Android applications using Android Studio Arctic Fox Essentials and Kotlin Key …
book
Android Studio 4.1 Development Essentials – Kotlin Edition
Acquire the skills necessary to develop Android apps using the Android Studio integrated development environment and …