An open API service indexing awesome lists of open source software.

https://github.com/heyysudarshan/exploring-the-world-of-kotlin

I'm absolutely in love with Kotlin: I think about it all the time, even in my sleep! This repository showcases everything I built on my journey through Kotlin.
https://github.com/heyysudarshan/exploring-the-world-of-kotlin

android compose-multiplatform desktop gradle ios jvm kotlin kotlin-multiplatform ktor

Last synced: 4 months ago
JSON representation

I'm absolutely in love with Kotlin: I think about it all the time, even in my sleep! This repository showcases everything I built on my journey through Kotlin.

Awesome Lists containing this project

README

          

### Trying Kotlin

Kotlin is a modern, concise, and expressive language packed with helpful features that make coding more enjoyable and
efficient. Its clean syntax allows you to write code that is concise, readable, and easy to maintain.

This module lists essential Kotlin features with code snippets to help you get started or refresh your knowledge. For a
deeper understanding, explore the [official Kotlin documentation](https://kotlinlang.org/docs/home.html).

Here's the list of topics I've covered:

1. Writing a basic `Hello World` program.
2. Displaying output with `println()`.
3. Printing multi-line text using triple quotes `""" """`.
4. Writing single-line and multi-line comments.
5. Declaring immutable variables with `val`.
6. Declaring mutable variables with `var`.
7. Using **string templates** to embed variables in strings.
8. Using **template expressions** to embed expressions inside strings.
9. Common data types: `String`, `Int`, `Boolean`, `Char`, and `Double`.

### Practice solutions

This module contains all the coding challenges I’ve solved using Kotlin. It starts with very basic programs, which I’ve
included intentionally. I believe these small programs help you get familiar with the syntax and understanding of the
language, and then you can gradually increase the challenge level after a certain point.

1. Create a function that takes two numbers as arguments and returns their sum.
[View solution](https://github.com/heyysudarshan/exploring-the-world-of-kotlin/blob/main/practice-solutions/src/main/kotlin/com/practice/solutions/Program1.kt)

### Thank you 🙌

I'm glad you checked out this repository. I understand the struggle of learning a new language or transitioning to
another one. Believe me—you’ll soon start loving Kotlin more than anything.

When I first started, I loved Java and JavaScript. I never imagined Kotlin would replace them, but here I am. Now, every
other language feels awkward to me. All the best, and welcome to the world of Kotlin. Thank you so much for checking
this out!