Kotlin First Impressions
Вставка
- Опубліковано 4 вер 2024
- Reading and understanding modern Kotlin code.
💬 Topics:
- Why use Kotlin?
- Kotlin vs. Java;
- What are Kotlin data classes?
- What are Kotlin function extensions;
- Is inheritance bad?
- What are Kotlin infix functions?
- Kotlin functional programming;
- Single expression functions;
- Immutability in Kotlin;
- Destructuring objects.
📖 Blog Article - www.awesome.cl...
Patreon - / awesomeclub
#kotlin
Reading Kotlin is always fun (badum ts)
😅
Functional kotlin be like
Actually, they had to choose what to use for functions between fun and def(3 letters) and they intentionally chosed fun because it' fun 😅. Someone from jetbrains has a talk on this.
@@Bs0dKnight fun is def more fun than def
You should mention coroutines (async). This is a must-have in a modern language.
Thanks for mentioning this. I actually saved coroutines and async coding for a second video where I'm tackling more advanced concepts.
Ohh noice
Kotlin is very good
If it didn't have null and errors as values I'd be a kotlin dev but kotlin is my favourite jvm languages
Edit: btw ktor is really good
Same here - it's hard getting back to Java once you use Kotlin for a while.
Thank you! I find it helpful to have windows into the ergonimicity of other programming languages.
You're welcome!
kinda of crazy how lua has become so popular because of neovim
And Roblox
@loek8638 Yep - I think Roblox is the main driver here :))
A video on Swift later? After looking at it for some time, it has a lot of similarities to Kotlin design wise, while being a compiled language first. And in recent times there is quite the ongoing work to expand it as a general language, and not just be "the mac/ios app language", with better support for other platforms, better c++ interop, and already some back-end frameworks like vapor
Also the fact that there are official Swift development tools (lsp, linter, repl) for use in third party editors, while JetBrains has the stance of "the only way of developing Kotlin is trough our IDE", you know you're being stingy when Apple is more open about third party support
This is a very good suggestion - thank you!
this is good lang, but it doesn't have lsp that really sad :(
My personal list of languages to learn or the "Avengers List Of Languages" right now is: JavaScript/TypeScript, Kotlin, Go, Python, Solidity. You cannot go wrong with any of these languages be it for personal projects or finding a job, imo.
Solidity is an interesting choice. Do you see a great future / wide adoption of smart contracts.
@@awesome-coding I think it's unrealized potential right now, but I do think it has a future. I wouldn't make it a priority to learn, though, but may come handy when mass adoption begins and you were way ahead of the curve.
Kotlin vs modern Java 21?
Honesty I'd still go with Kotlin because of the better developer experience.
Kotlin has null safety built in into the language, while Java doesn't really enforce the use of Optional.
Also, I like that Kotlin is more expressive thanks to the enhanced collection methods.
Java is still the safe choice though, and you have better chances getting a job with it.
@@awesome-coding
Thank you :)
Except it has a shitty support in vs code 🙂💔
Ah.. good point..
I'm a long time user of IntelliJ IDEA, so I'm not feeling the pain of the lack of IDE support.
@@awesome-coding I'm feeling it. I'm generally not a JetBrains' IDEs' fan. I just don't like their design and vscode is just smooth and has a beautiful UI. I don't know why there's no support for vs code like literally most popular languages are well supported in vs code even java and dart but kotlin! Were they too lazy to add it or they want to force you to use JetBrains' IDEs so they can make more money?
@@thecoolnewsguy I don't want to push IntelliJ in any way, but just as an FYI, its latest "New UI" update is a huge step forward in UI and usability.
Honestly, I believe they have no real interest in Kotlin devs to use anything other than their IDEs (which are very pricey in my opinion).
Google doesn't care, because Kotlin works well in Android studio.
The Spring / Java devs don't care, because IntelliJ is already heavily used in those communities.
So the only devs affected are the ones coming to Kotlin from a background different from Java. I don't know how big of a chunk this group is, but my expectation is that when a critical mass will be reached in this category JetBrains will have no other option but to liberalise IDE support for Kotlin.
Of course jetbrains itself wont add kotlin support to vscode because it's competitor.
Also kotlin is not very popular anywhere except mobile, so there is not much interest in the community to work on this support either.
@@Bs0dKnight the same can be said for flutter too (I know it can also be used for desktop and web but there are better alternatives for this). Google could just leave it to android studio without vs code support.