|
|
|
|
|
by e12e
3318 days ago
|
|
The strong point of kotlin is definitely that it's "java pseudocode" - it's what you'd have to write on a whiteboard to leave no questions about what was elided. Like data classes - in kotlin you write the attributes, but get setters and getters, so you could to validation on change or whatever you might need steers for beyond beans. Given that; it's a pretty simple language - a lot like python or ruby, but with a touch more of syntax beurocracy. If you only have some javascript, it would probably be best to learn it from a proper kotlin book - there's a few out/coming out - but I've not read them. But if anyone took a typical "java as a first programming language"-book and shifted it to idiomatic kotlin, such a book would probably be a decent first programming book. Note that I do agree somewhat with the comments about kotlin being lipstick on java's broken and strange single-inheritance oo, which leans more on Simula than Smalltalk. But I think the result is rather pretty. Maybe just because it manages to get rid of so much cruft from java ("Doctor it hurts when I do this." - "Then stop doing that."). |
|