Book Image

Kotlin for Enterprise Applications using Java EE

By : Raghavendra Rao K
Book Image

Kotlin for Enterprise Applications using Java EE

By: Raghavendra Rao K

Overview of this book

Kotlin was developed with a view to solving programmers’ difficulties and operational challenges. This book guides you in making Kotlin and Java EE work in unison to build enterprise-grade applications. Together, they can be used to create services of any size with just a few lines of code and let you focus on the business logic. Kotlin for Enterprise Applications using Java EE begins with a brief tour of Kotlin and helps you understand what makes it a popular and reasonable choice of programming language for application development, followed by its incorporation in the Java EE platform. We will then learn how to build applications using the Java Persistence API (JPA) and Enterprise JavaBeans (EJB), as well as develop RESTful web services and MicroServices. As we work our way through the chapters, we’ll use various performance improvement and monitoring tools for your application and see how they optimize real-world applications. At each step along the way, we will see how easy it is to develop enterprise applications in Kotlin. By the end of this book, we will have learned design patterns and how to implement them using Kotlin.
Table of Contents (13 chapters)

Preface

It is always exciting to embark on a new journey, and learning a language is no different. This process is a fun-filled journey that brings with it the true satisfaction of learning.

In the process of developing the software or an application, choosing a programming language has always been a topic for debate. Several JVM-based programming languages have been available for application development, such as Java, Groovy, and Scala. When there are so many languages around, why do we need another one? Well, the answer is that any language is conceptualized for a specific task and audience. Typically, the language gets richer over a period of time as a result of the developer community. But one language typically will not have all the features required. Kotlin combines several nice features that are there in different languages. Its elegant syntax and the non-verbosity of the code makes application development faster and efficient to manage.

Kotlin combines the features of the object-oriented and functional style of programming to choose from, based on the context suitable for enterprise application development. Kotlin is developed with the intention of making the programming experience easier and solving the problems that programmers face while developing and maintaining an application or a microservice. This adds to the value proposition in an application's life cycle by saving time and keeping it productive while developing the solution. Kotlin is a very pragmatic language that caters well to the needs of enterprise applications.

Kotlin aids application development by having a lot less code compared to any other JVM-based languages, which essentially means that developing the application would become faster and maintenance easier. Language is non-verbose and hence, it is less error-prone. Elegance in syntax improves the readability of the code. Kotlin is a statically-typed language, so type safety is guaranteed.

For all these reasons, Kotlin is a great fit for enterprise application development.

Thank you for selecting this book. I hope you will enjoy reading it and apply the learnings to developing enterprise systems.