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)

Implementing the Place Reviewer Frontend

In the previous chapter, we continued our exploration of Kotlin as a viable language for the creation of web applications by commencing the building of the Place Reviewer website. We began the chapter by discussing the Model-View-Controller design pattern and taking a high-level look at the primary components at play in MVC applications: the model, the view, and the controller. Once we had a clear understanding of the MVC design pattern and how it works, we commenced with the design and implementations of the backend for the Place Reviewer application.

First and foremost, we identified and clearly stated the anticipated use cases for our application. Next, we identified the data required to build an application that facilitates the use cases identified. After identification of the data to be catered for, we went full steam ahead with the...