Write Once, Run Anywhere

preview_player
Показать описание
A quick look at the Kotlin programming language.

💬 Topics:
- What is Kotlin?
- Advantages of Kotlin;
- Kotlin, Java and the JVM
- Immutability in Kotlin;
- Kotlin code examples;
- Kotlin crash course;
- Kotlin advanced features;

Рекомендации по теме
Комментарии
Автор

0:00 "Write once, -run- debug anywhere"
I see what you did there

avi
Автор

If it's made by JetBrains, you can be rest assured that it'll be a pleasure to work with.

wlockuz
Автор

Lol "write once debug anywhere" was a banger start 😂

TechBuddy_
Автор

Object can also be used as a static class, the object is some thing that never instantiate thus a static object no inheritance etc, additionally there is this thing called companion object which is essentially a static class within an instantiatable class, this exist so that it could replace stuff such as manager class that manage other class, now you'll have all the code with the same functionality within the same class and same file
e.g.
class A
A.something() //companion object method
a.somrthing() // instance object method

lucasteo
Автор

Damn you really made me want to give it a try after I've delayed it for so long... great job

brunoggdev
Автор

I've been using Kotlin for a few years and I have to say, it is definitely an improvement over Java. One issue I encounter is that most Java libraries weren't built for Kotlin, which can lead to a strange developer experience.

oglass
Автор

One thing I don’t like is gradle. It’s super slow and prefer maven.
A gradle file looks much better but it takes forever to do anything compared to
maven in xml.

jaymartinez
Автор

I like the idea of Kotlin multiplatform, but not the focus shift to Compose Multiplatform, running UI on Skia doesn't make sense when Flutter is already dropping that.

If they had a native component library/package, it would be much better than knowing how to interoperate with each platform to create the UI (e.g. a simple button) if I dont want to use Compose Multiplatform.

sambaotaku
Автор

Cool video, it would be interesting to see one on dart/flutter

infinitebeast
Автор

coincidentally, I just tried Kotlin yesterday with Android Studio, but the IDE is too resource intensive for my liking.

is Kotlin any good with VS Code? I heard the tooling is not too good there, or any other IDE beside Jet Brain's in general.

zill_laiss
Автор

Beautiful language but the soft lock-in to IntelliJ (because it's the only real way of developing Kotlin) makes it irrelevant for me, at least.

Shpitzick
Автор

I still love Scala more. 😃
Anyway, nice video!

BorisTheDev
Автор

3:34 Maan I've been using Kotlin for more than 2 years and never knew about object expressions, thought I knew everything!

I used them before to implement a specific interface, but didn't think they could be used just like that! Super cool for one-off operations where creating a class is overkill!

HoussamElbadissi
Автор

damn i might learn kotlin... looks a lot like c# and ruby

memes_gbc
Автор

Anything is better than public static void main string[ ] args 😛

Thassalocracy
Автор

isn't dart also a write once run anywhere ?

hamzakhiar
Автор

For kotlin to take off, we first need to see spring boot running

Kal.
Автор

kotlin seems like a great language, but i really don't like oop and inheritance. i prefer composition through data structures.

smoked-old-fashioned-hhlo
Автор

kotlin is well positioned to be the main language for pretty much everything... jetbrains are #1 when it comes to producing tooling for coding and no matter how good your language if it has no proper tooling its doomed...

kotlin native will take over low level stuff (so C/C++, Rust, Zig)
kotlin jvm already dominates JVM so (see you java)
kotlin wasm/js will ultimately cover web

they just need to not screw up and continue as they were doing before, the appeal of writing very readable code but having it work for any platform without a VM is going to be huge

krellin
Автор

In modern IT landscape Java VM is obsolete. All you really need - run one Go binary inside scratch image under any container environment. End of story.

hnphryl