techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.9K
active users

#kotlin

35 posts25 participants1 post today

🚨 We've extended the deadline to Sunday, May 18th at 11:59 PM EST! 🚨

We’re seeking an experienced developer passionate about open-source, technical leadership, and community-driven development. The Processing Project Lead will manage software maintenance, the roadmap, documentation, and contributor support.

Read more and apply at: processingfoundation.org/emplo

Full-time, fully-remote, $95K

Wait, when you do

class Foo () {
val foo: Int

init { ... }

val bar: Int
}

in #Kotlin, it initializes foo, before it runs init, but bar doesn't get initialized until after ???

Who the heck thought that was a good idea?!

UPDATE: Aha! I guess I didn't realize there are "init blocks" in Kotlin, and thought they're the same as “init methods” in other languages, but you can have multiple init blocks, and there are separate "constructors" in Kotlin.

Replied in thread

@barubary @rena2019 Noch etwas Persönliches zum #Dart. Natürlich hat die Sprache ihre Berechtigung. Aber so richtig schön ist die Programmiersprache nicht. Macht nicht wirklich Spaß. Irgendwas zwischen #Java, #Typescript, #Javascript und #Kotlin. Sicher kann man damit gut Anwendungen entwickeln. Ich wette nur, wenn Google sich für Typescript, JavaScript oder (Kotlin) im Gegensatz zu Dart entschieden hätte, wäre es sicher noch weiter verbreitet.