
Kotlin Academy: Essentials
Description
Book Introduction
A new guide to Kotlin from Marcin Mosca, author of Effective Kotlin and Kotlin Coroutines!
It covers all of Kotlin's core features, so you can systematically organize Kotlin!
The perfect first step to learning Kotlin properly!
Kotlin is one of the most talked about programming languages right now.
Armed with an easy-to-understand syntax, intuitive code, a null-safe type system, and a variety of support tools, Kotlin empowers developers.
It has established itself as the representative language for Android development and is now gaining popularity as a replacement for Java in the backend as well.
Moreover, its scope of application is expanding day by day, including data science, multi-platform, iOS, desktop, and web application development.
The possibilities with Kotlin are endless, and more opportunities open up every year.
"Kotlin Academy: Essentials" is the first gateway into the world of Kotlin.
This book systematically covers Kotlin's core features, explaining them clearly and easily with executable code examples.
Developers who have experience with object-oriented languages such as Java, JavaScript, Python, and C++ will find it easy to understand.
Let's begin our journey into the world of Kotlin with this book.
With this book, you too will be able to develop innovative and powerful applications using Kotlin.
It covers all of Kotlin's core features, so you can systematically organize Kotlin!
The perfect first step to learning Kotlin properly!
Kotlin is one of the most talked about programming languages right now.
Armed with an easy-to-understand syntax, intuitive code, a null-safe type system, and a variety of support tools, Kotlin empowers developers.
It has established itself as the representative language for Android development and is now gaining popularity as a replacement for Java in the backend as well.
Moreover, its scope of application is expanding day by day, including data science, multi-platform, iOS, desktop, and web application development.
The possibilities with Kotlin are endless, and more opportunities open up every year.
"Kotlin Academy: Essentials" is the first gateway into the world of Kotlin.
This book systematically covers Kotlin's core features, explaining them clearly and easily with executable code examples.
Developers who have experience with object-oriented languages such as Java, JavaScript, Python, and C++ will find it easy to understand.
Let's begin our journey into the world of Kotlin with this book.
With this book, you too will be able to develop innovative and powerful applications using Kotlin.
- You can preview some of the book's contents.
Preview
index
Chapter 1: What kind of language is Kotlin?
Kotlin Platform
Kotlin IDE
Areas of application
Chapter 2: Creating Your First Program in Kotlin
Live Templates
What happens in the JVM
Packages and Imports
summation
Practice Problem: First Program
Chapter 3 Variables
Chapter 4 Basic Types, Literals and Operations of Basic Types
number
fire
message
string
summation
Practice Problem: Default Operations
Chapter 5 Conditional Statements: if, when, try, while
if statement
when statement
when statement that receives a value as a condition
is confirmed
Explicit casting
Smart Casting
while and do-while statements
summation
Practice Problem: Using when
Practice Problem: Print the time neatly
Chapter 6 Functions
Single expression function
Function level
Parameters and arguments
Unit return type
vararg parameters
Named parameter syntax and default arguments
Function overloading
Infix notation
Function format
summation
Practice Problem: Print Personal Information
Chapter 7: The Power of Inquiry
range
Break and continue
Usage examples
summation
Practice Problem: Range Operations
Chapter 8: Null Possibilities
Safety call
Assertion that you are not
Smart Casting
Elvis Operator
Extension functions for nullable types
In Kotlin, null is our friend.
lateinit
summation
Practice Problem: User Information Handler
Chapter 9 Class
member functions
property
Constructor
Classes that represent data in Kotlin and Java
inner class
summation
Exercise: Implementing the Product Class
Chapter 10 Inheritance
Overriding components
Parent with non-empty constructor
super call
abstract class
interface
Visibility
Any
summation
Exercise: Simulating a GUI View Hierarchy
Chapter 11 Data Classes
Convert to string
Object equality
Hash code
Copy object
structural decomposition
When and how to use structural decomposition
Constraints on data classes
Use data classes instead of tuples
summation
Practice Problem: Data Classes
Chapter 12 Objects
Object expression
Object declaration
Companion Object
Declaring a data object
constant
summation
Practice Problem: Pizza Factory
Chapter 13 Exceptions
Throwing an exception
Exception definition
Catch exceptions
try-catch block used as expression
finally block
Important exceptions
Hierarchy of exceptions
summation
Practice Problem: Catching Exceptions
Chapter 14 Enumeration Classes
Data of enumerated values
Enumeration class with custom methods
summation
Practice Problem: Enumeration of Days of the Week
Chapter 15 Sealed Classes and Interfaces
Sealed classes and when expressions
Sealed Types vs. Enumerations
Usage examples
summation
Chapter 16 Annotation Classes
meta-annotation
Adding annotations to the primary constructor
list literals
summation
Chapter 17 Expansion
Exploring Extension Functions
Extension properties
Extension Member
Extension functions in object declarations
Member extension function
Usage examples
summation
Practice Problems: Converting and Creating Units of Measurement
Chapter 18 Collection
Interface hierarchy
Mutable vs. Read-Only Types
Create a collection
List
set
Map
Examples of array usage in practice
summation
Practice Problem: List Management
Chapter 19 Operator Overloading
Example of operator overloading
Arithmetic operators
in operator
iterator operator
Equal and inequality operators
Comparison operators
Indexed access operators
Augmented assignment statement
unary prefix operator
Increase and decrease
invoke operator
Operator precedence
summation
Practice Problems: Monetary Operations
Chapter 20: The Charms of Kotlin's Type System
What is a type?
Why are types needed?
Relationship between classes and types
Comparing classes and types in real code
Relationships between types
Nothing: Subtype of all types
Result types of return and throw
If there is an unreachable code
null type
summation
Exercise: Closest Subtypes of Types
Chapter 21 Generics
Generic functions
Generic class
Generic classes and nullability
Generic interface
Type parameters and inheritance
Type erasure
Generic constraints
star projection
Underscore operator used in type arguments
summation
Practice Problem: Stack
In conclusion
Practice Problem Answers
Search
Kotlin Platform
Kotlin IDE
Areas of application
Chapter 2: Creating Your First Program in Kotlin
Live Templates
What happens in the JVM
Packages and Imports
summation
Practice Problem: First Program
Chapter 3 Variables
Chapter 4 Basic Types, Literals and Operations of Basic Types
number
fire
message
string
summation
Practice Problem: Default Operations
Chapter 5 Conditional Statements: if, when, try, while
if statement
when statement
when statement that receives a value as a condition
is confirmed
Explicit casting
Smart Casting
while and do-while statements
summation
Practice Problem: Using when
Practice Problem: Print the time neatly
Chapter 6 Functions
Single expression function
Function level
Parameters and arguments
Unit return type
vararg parameters
Named parameter syntax and default arguments
Function overloading
Infix notation
Function format
summation
Practice Problem: Print Personal Information
Chapter 7: The Power of Inquiry
range
Break and continue
Usage examples
summation
Practice Problem: Range Operations
Chapter 8: Null Possibilities
Safety call
Assertion that you are not
Smart Casting
Elvis Operator
Extension functions for nullable types
In Kotlin, null is our friend.
lateinit
summation
Practice Problem: User Information Handler
Chapter 9 Class
member functions
property
Constructor
Classes that represent data in Kotlin and Java
inner class
summation
Exercise: Implementing the Product Class
Chapter 10 Inheritance
Overriding components
Parent with non-empty constructor
super call
abstract class
interface
Visibility
Any
summation
Exercise: Simulating a GUI View Hierarchy
Chapter 11 Data Classes
Convert to string
Object equality
Hash code
Copy object
structural decomposition
When and how to use structural decomposition
Constraints on data classes
Use data classes instead of tuples
summation
Practice Problem: Data Classes
Chapter 12 Objects
Object expression
Object declaration
Companion Object
Declaring a data object
constant
summation
Practice Problem: Pizza Factory
Chapter 13 Exceptions
Throwing an exception
Exception definition
Catch exceptions
try-catch block used as expression
finally block
Important exceptions
Hierarchy of exceptions
summation
Practice Problem: Catching Exceptions
Chapter 14 Enumeration Classes
Data of enumerated values
Enumeration class with custom methods
summation
Practice Problem: Enumeration of Days of the Week
Chapter 15 Sealed Classes and Interfaces
Sealed classes and when expressions
Sealed Types vs. Enumerations
Usage examples
summation
Chapter 16 Annotation Classes
meta-annotation
Adding annotations to the primary constructor
list literals
summation
Chapter 17 Expansion
Exploring Extension Functions
Extension properties
Extension Member
Extension functions in object declarations
Member extension function
Usage examples
summation
Practice Problems: Converting and Creating Units of Measurement
Chapter 18 Collection
Interface hierarchy
Mutable vs. Read-Only Types
Create a collection
List
set
Map
Examples of array usage in practice
summation
Practice Problem: List Management
Chapter 19 Operator Overloading
Example of operator overloading
Arithmetic operators
in operator
iterator operator
Equal and inequality operators
Comparison operators
Indexed access operators
Augmented assignment statement
unary prefix operator
Increase and decrease
invoke operator
Operator precedence
summation
Practice Problems: Monetary Operations
Chapter 20: The Charms of Kotlin's Type System
What is a type?
Why are types needed?
Relationship between classes and types
Comparing classes and types in real code
Relationships between types
Nothing: Subtype of all types
Result types of return and throw
If there is an unreachable code
null type
summation
Exercise: Closest Subtypes of Types
Chapter 21 Generics
Generic functions
Generic class
Generic classes and nullability
Generic interface
Type parameters and inheritance
Type erasure
Generic constraints
star projection
Underscore operator used in type arguments
summation
Practice Problem: Stack
In conclusion
Practice Problem Answers
Search
Detailed image

Into the book
Armed with an easy-to-understand syntax, intuitive code, a null-safe type system, and a variety of support tools, Kotlin empowers developers.
It has established itself as the leading language for Android development and is now gaining popularity as a replacement for Java in the backend as well.
Moreover, its scope of application is expanding day by day, including data science, multiplatform, iOS, desktop, and web application development.
This book covers the most basic features of Kotlin for those who want to start developing with it.
--- From "The Author's Note"
Although Kotlin has only recently begun to gain traction as a replacement language for Java, its influence is growing.
Kotlin has become the official language for Android, and backend developers like me are also developing servers in Kotlin.
Even those taking their first steps as developers are increasingly choosing Kotlin as their first programming language.
More and more projects are choosing Kotlin as their primary language, and we are also seeing many cases of existing Java projects being ported to Kotlin.
There are countless reasons to learn Kotlin, even if you don't plan on using it right away.
--- From the Translator's Note
Kotlin can replace Java, JavaScript, C++, and Objective-C.
However, it is the most mature in the JVM environment and is still mainly used as a replacement for Java.
Kotlin is also widely used in backend development.
It is primarily used with the Spring Framework, but is also often used with frameworks such as Vert.x, Ktor, Micronaut, http4k, and Javalin.
Kotlin has become the de facto standard language for Android development.
Google officially recommends that all Android applications be written in Kotlin and has made Kotlin a top priority across all APIs.
More and more projects are taking advantage of Kotlin's ability to compile for a wide range of platforms.
Because you can write code that can run on different platforms, such as Android and iOS, or backend and frontend.
Kotlin's platform compatibility allows library authors to support numerous platforms with a single library.
Many companies are already leveraging Kotlin's multiplatform support, and that number is growing rapidly.
Let's look at Jetpack Compose, a tool for creating native UIs with Kotlin.
Originally developed for Android, Kotlin's multiplatform support has allowed it to expand to include websites, desktop applications, iOS applications, and more.
Kotlin is also being used in front-end development, particularly with React, and the community of data scientists using Kotlin is also growing.
There are already countless areas where Kotlin can be used, and more and more possibilities are opening up every year.
After reading this book, you'll probably have some great ideas for how to use your newfound knowledge.
It has established itself as the leading language for Android development and is now gaining popularity as a replacement for Java in the backend as well.
Moreover, its scope of application is expanding day by day, including data science, multiplatform, iOS, desktop, and web application development.
This book covers the most basic features of Kotlin for those who want to start developing with it.
--- From "The Author's Note"
Although Kotlin has only recently begun to gain traction as a replacement language for Java, its influence is growing.
Kotlin has become the official language for Android, and backend developers like me are also developing servers in Kotlin.
Even those taking their first steps as developers are increasingly choosing Kotlin as their first programming language.
More and more projects are choosing Kotlin as their primary language, and we are also seeing many cases of existing Java projects being ported to Kotlin.
There are countless reasons to learn Kotlin, even if you don't plan on using it right away.
--- From the Translator's Note
Kotlin can replace Java, JavaScript, C++, and Objective-C.
However, it is the most mature in the JVM environment and is still mainly used as a replacement for Java.
Kotlin is also widely used in backend development.
It is primarily used with the Spring Framework, but is also often used with frameworks such as Vert.x, Ktor, Micronaut, http4k, and Javalin.
Kotlin has become the de facto standard language for Android development.
Google officially recommends that all Android applications be written in Kotlin and has made Kotlin a top priority across all APIs.
More and more projects are taking advantage of Kotlin's ability to compile for a wide range of platforms.
Because you can write code that can run on different platforms, such as Android and iOS, or backend and frontend.
Kotlin's platform compatibility allows library authors to support numerous platforms with a single library.
Many companies are already leveraging Kotlin's multiplatform support, and that number is growing rapidly.
Let's look at Jetpack Compose, a tool for creating native UIs with Kotlin.
Originally developed for Android, Kotlin's multiplatform support has allowed it to expand to include websites, desktop applications, iOS applications, and more.
Kotlin is also being used in front-end development, particularly with React, and the community of data scientists using Kotlin is also growing.
There are already countless areas where Kotlin can be used, and more and more possibilities are opening up every year.
After reading this book, you'll probably have some great ideas for how to use your newfound knowledge.
--- From the text
Publisher's Review
What this book covers
ㆍ Variables, values, types
Conditional statements and loops
ㆍ Support for null possibility
ㆍ Classes, interfaces, inheritance
ㆍ Object expressions and declarations
ㆍ Data classes, sealed classes, enumeration classes, annotation classes
ㆍ Exceptions
ㆍ Extension function
ㆍ Collection
Operator overloading
Type system
ㆍ Generic
Target audience for this book
This book covers the core features you must know when programming in Kotlin, so it is suitable for developers who have experience developing in Kotlin but want to learn the basics of Kotlin from scratch, or for developers who are not familiar with Kotlin but have experience developing in other languages.
Download source code
All source code introduced in the text can be found in the following GitHub repository.
https://github.com/MarcinMoskala/kotlin_essentials_sources
ㆍ Variables, values, types
Conditional statements and loops
ㆍ Support for null possibility
ㆍ Classes, interfaces, inheritance
ㆍ Object expressions and declarations
ㆍ Data classes, sealed classes, enumeration classes, annotation classes
ㆍ Exceptions
ㆍ Extension function
ㆍ Collection
Operator overloading
Type system
ㆍ Generic
Target audience for this book
This book covers the core features you must know when programming in Kotlin, so it is suitable for developers who have experience developing in Kotlin but want to learn the basics of Kotlin from scratch, or for developers who are not familiar with Kotlin but have experience developing in other languages.
Download source code
All source code introduced in the text can be found in the following GitHub repository.
https://github.com/MarcinMoskala/kotlin_essentials_sources
GOODS SPECIFICS
- Date of issue: July 10, 2024
- Page count, weight, size: 340 pages | 574g | 172*225*17mm
- ISBN13: 9788966264438
You may also like
카테고리
korean
korean