Hands-On Object-Oriented Programming with Kotlin
eBook - ePub

Hands-On Object-Oriented Programming with Kotlin

Build robust software with reusable code using OOP principles and design patterns in Kotlin

Abid Khan, Igor Kucherenko

  1. 370 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Hands-On Object-Oriented Programming with Kotlin

Build robust software with reusable code using OOP principles and design patterns in Kotlin

Abid Khan, Igor Kucherenko

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Learn everything you need to know about object-oriented programming with the latest features of Kotlin 1.3

Key Features

  • A practical guide to understand objects and classes in Kotlin
  • Learn to write asynchronous, non-blocking codes with Kotlin coroutines
  • Explore Encapsulation, Inheritance, Polymorphism, and Abstraction in Kotlin

Book Description

Kotlin is an object-oriented programming language. The book is based on the latest version of Kotlin. The book provides you with a thorough understanding of programming concepts, object-oriented programming techniques, and design patterns. It includes numerous examples, explanation of concepts and keynotes. Where possible, examples and programming exercises are included.

The main purpose of the book is to provide a comprehensive coverage of Kotlin features such as classes, data classes, and inheritance. It also provides a good understanding of design pattern and how Kotlin syntax works with object-oriented techniques. You will also gain familiarity with syntax in this book by writing labeled for loop and when as an expression. An introduction to the advanced concepts such as sealed classes and package level functions and coroutines is provided and we will also learn how these concepts can make the software development easy. Supported libraries for serialization, regular expression and testing are also covered in this book. By the end of the book, you would have learnt building robust and maintainable software with object oriented design patterns in Kotlin.

What you will learn

  • Get an overview of the Kotlin programming language
  • Discover Object-oriented programming techniques in Kotlin
  • Understand Object-oriented design patterns
  • Uncover multithreading by Kotlin way
  • Understand about arrays and collections
  • Understand the importance of object-oriented design patterns
  • Understand about exception handling and testing in OOP with Kotlin

Who this book is for

This book is for programmers and developers who wish to learn Object-oriented programming principles and apply them to build robust and scalable applications. Basic knowledge in Kotlin programming is assumed

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Hands-On Object-Oriented Programming with Kotlin un PDF/ePUB en línea?
Sí, puedes acceder a Hands-On Object-Oriented Programming with Kotlin de Abid Khan, Igor Kucherenko en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2018
ISBN
9781789619645
Edición
1
Categoría
Programming

Object-Oriented Patterns in Kotlin

A pattern is a concept that relates to software architecture. By architecture, we mean a high-level structure of programming code that includes elements and relationships. It's important to make the right decision when it comes to a pattern that will be used to solve everyday problems. This is because choosing and implementing a pattern is a one-time procedure that is expensive to change.
Before we begin, let's review the topics we will be looking at in this chapter:
  • What design patterns are and how they help
  • Types of design patterns
  • Creational patterns
  • Structural patterns
  • Behavioral patterns

Technical requirements

To run the code from this chapter, we just need IntelliJ IDEA as well as Git installed. This chapter doesn't require any additional installations.
You can find examples from this chapter on GitHub at the following link: https://github.com/PacktPublishing/Hands-On-Object-Oriented-Programming-with-Kotlin/tree/master/src/main/kotlin/Chapter06.

What design patterns are and how they help

The process of software development involves creating new classes and interfaces, building an inheritance hierarchy, and establishing communication between objects. Object-oriented programming helps us to build an abstraction of entities and processes using extremely powerful concepts such as encapsulations, composition, inheritance, polymorphism, and so on and so forth.
We should understand that a developer writes code to solve one or more sets of problems. Software designing is a process of describing how to apply the concepts of object-oriented programming together to implement a solution.
An implementation of a commonly occurring solution is a software design pattern if it can be reused in many different situations. The most common reasons to use a design template are as follows:
  • Acceleration of the development process
  • Increasing the quality of code
  • Decreasing communication time between developers
Reusing patterns helps us to prevent common issues, which is why we can increase the quality of code. It also improves readability and understanding for developers who are familiar with a pattern that decreases the time for communication and code review. As a result, we can speed up the development process.
Software design patterns in object-oriented programming show relationships and communic...

Índice