Book Image

Kotlin Programming By Example

By : Iyanu Adelekan
Book Image

Kotlin Programming By Example

By: Iyanu Adelekan

Overview of this book

Kotlin greatly reduces the verbosity of source code. With Google having announced their support for Kotlin as a first-class language for writing Android apps, now's the time learn how to create apps from scratch with Kotlin Kotlin Programming By Example takes you through the building blocks of Kotlin, such as functions and classes. You’ll explore various features of Kotlin by building three applications of varying complexity. For a quick start to Android development, we look at building a classic game, Tetris, and elaborate on object-oriented programming in Kotlin. Our next application will be a messenger app, a level up in terms of complexity. Before moving onto the third app, we take a look at data persistent methods, helping us learn about the storage and retrieval of useful applications. Our final app is a place reviewer: a web application that will make use of the Google Maps API and Place Picker. By the end of this book, you will have gained experience of of creating and deploying Android applications using Kotlin.
Table of Contents (12 chapters)

Designing and Implementing the Messenger Backend with Spring Boot 2.0

In the last couple of chapters, we gained a firm grasp of the fundamentals of the Kotlin programming language by implementing the classic game, Tetris. In Chapter 3, Implementing Tetris Logic and Functionality, we finished the development of the game by implementing its application logic. We created programmatic models for blocks, shapes, frames, and the application as a whole, via an app model class. In addition, we learned how to create custom views by implementing Tetris view—a view that the user of the application interacted with to play the game.

We will hone our Kotlin development skills further by developing a simple messenger application for the Android platform. In the process of implementing the Android application, we will first develop a RESTful API that will provide web content to the application...