Programming Studyๆ—ฅๆœฌ่ชž

Disclosure: We earn a commission from Udemy when you buy a course through links on this page.

Kotlin Coding Exercises: 85 Hands-On Problems and Projects

Kotlin Coding Exercises: 85 Hands-On Problems and Projects

Udemy ยท English

About this course

Language
English
Category
Provider
Udemy
Data updated

Kotlin is easy to read and surprisingly easy to write badly. A lot of Kotlin in the wild is really Java with the semicolons removed: index loops instead of filter and map, manual null checks instead of safe calls, mutable lists passed everywhere. It compiles and it works, but it isn't what interviewers or reviewers want to see. The fix isn't another tutorial. It's writing a lot of Kotlin, getting immediate feedback, and gradually reaching for the idiomatic version first. This course is 85 coding exercises in the Kotlin editor built into the course. Each exercise gives you a short task and a function to complete. When you submit, automated tests run against your code and tell you straight away whether it passes. If it doesn't, you change something and run it again. A handful of short lectures introduce each tier and cover the Kotlin essentials you need before you start, but most of your time is spent writing code. Here's what that looks like. One advanced exercise asks you to group a list of words so that anagrams end up together. The loop-heavy way works: create a map, loop over every word, sort its letters, check whether the key exists, add the word. The Kotlin way is a single groupBy on the sorted letters of each word, followed by taking the values. Both pass the tests. Only one reads like Kotlin. Working through 85 problems, you'll keep meeting that choice, and by the end you'll reach for the idiomatic version without thinking about it. That's the difference interviewers notice when they watch you code, and the difference reviewers notice when they read your pull request. How the course is organizedThe beginner tier has 25 exercises that get the basics into your fingers: greetings with string templates, price totals, temperature conversion, even and odd checks, grading with a when expression, sums with ranges, vowel counting, string reversal, factorials, primes, digit sums, a multiplication table and palindromes. None of them is hard on its own. Doing all 25 is what makes the syntaxโ€ฆ

Courses in the same category