This course is designed for novices in Kotlin and focuses on working with collections in the Kotlin language. This is the third module of the course, the first and second modules can be found on JetBrains Marketplace. This module assumes that you are already familiar with all the constructs discussed in the first and second parts.
Each lesson of the course is built in the form of a project: step by step, by completing different small tasks, you will get a fully working project in the end. Some of the projects are practice-based and introduce to you different helpful Kotlin functions though practical exercises without much theory part.
Note that this course does not provide a detailed explanation of such aspects as asymptotic complexity, mostly, it just describes the definitions of different types of collections and shows how to use them in Kotlin.
All topics will be accompanied by links to the official Kotlin documentation, which you can read later.
Topics covered:
- definitions of
List
,Set
, andMap
collections; - read-only and mutable collections with
add
andremove
operations; - built-in functions to work with
List
,Set
, andMap
; - FIFO (First-In-First-Out) approach and how to work with in Kotlin;
- LIFO (Last-In-First-Out) approach and how to work with in Kotlin;
- [will be available later] aggregation operations;
- [will be available later] sequences.
After this course, you will be ready to use Kotlin collections in efficient ways.
Before starting this course, check the following requirements.
- Your computer needs to have a stable internet connection.
- Git version control system needs to be installed on your computer (link to the git site: https://git-scm.com/).
- Make sure that the path to the root folder of the course does not contain spaces, special characters, or non-Latin characters.
- Make sure that you use the IntelliJ IDEA with version at least
2023.1.1
. - Make sure that you use the EduTools plugin with version at least
2023.9-2023.1-1603
. - To be able to run web applications, you need to have a web browser. We recommend using Google Chrome.
The course is integrated into the IntelliJ IDEA IDE, which has a free Community license. You can use this license to complete the course. If you have some troubles with the course installation, feel free to contact us by email at [email protected].
This module is dedicated to the creation web applications on the topic Next to the future. It means that in each lesson, you will create a web application with some images familiar from your (or your parents') childhood.
The current version of the course covers three web-applications, two more will be released later:
-
Duck shop. As you know, many programmers ask rubber ducks for help. The main goal of this project is to implement a shop window with rubber duckies and study
List
,Set
, andMap
collections. -
Old school. Nowadays, taking Polaroid photos is often a hobby, and most photos are stored electronically. In the past, however, this was an almost inappropriate way to preserve the memory of important moments. The main goal of this project is to go back in time and implement several
List
,Set
, andMap
functions that allow you to navigate through your photo album. -
Tamagotchi. This toy was once very popular - a small keychain device that lets you take care of a virtual pet. In our case, we will be looking after a little corgi called Andy. The main goal of this project is to go back in time and study two very important approaches in programming - FIFO and LIFO.
This course is available on JetBrains Marketplace and can be installed from the IntelliJ IDEA IDE directly, but you can also use it in the Course Creator mode or create a course archive from the source code.
You can create a course preview from the source code:
-
Clone the repository:
git clone https://github.com/jetbrains-academy/kotlin-onboarding-part3.git
-
Run yarn install in each module with frontend.
-
Build the project:
./gradlew build
-
Install the EduTools plugin from JetBrains Marketplace.
-
Create a new course preview.
You can create a course archive from the source code:
-
Clone the repository:
git clone https://github.com/jetbrains-academy/kotlin-onboarding-part3.git
-
Build the project:
./gradlew build
-
Install the EduTools plugin from JetBrains Marketplace.
-
Create a new course archive.
To run tests locally, you just need to build the project and run the following command:
./gradlew test
The tests use the Java Reflection API under the hood to check the user's tasks.
If you have questions about the course or the tasks or if you find some errors, you can ask questions and participate in discussions in repository issues.
Please be sure to review the project's contributing guidelines to learn how to help the project.