Hey friends, Is there a point in reading Effective...
# announcements
o
Hey friends, Is there a point in reading Effective Java, with the movement to Kotlin?
r
Marcin Moskala wrote Effective Kotlin based on the original Java one. I did not read it, but looks like it might contain the same kind of insights, but more focused into kotlin idioms
Anyway, if your Kotlin will run in any kindo of JVM, you need to understand how java bytecode works, and the design decisions taken in Java. So just don’t disregard plain old java knowledge 🙃
o
I am reading Effective Kotlin, imo it is quite hard to read. Can you please further explain the bytecode part? I mean, I thought Java and Kotlin eventually being generated to the same bytecode, or isn’t? And how effective Java can help me with understanding the bytecode? isn’t it Java specific only?
a
Many tips are language-agnostic, like Item 17: Minimize mutability or Item 18: Favor composition over inheritance Book itself is very small, so you can give it a try
1
✔️ 1
o
Thanks Alexander
m
If you ever programmed Java, I recommend you still check it out. Some points in the book can also give insight on why Kotlin features are designed the way they are (for example closed by default)
o
Would you first read the effective Kotlin or Effective Java? @Matej Drobnič Assuming I need to get to speed working efficiently with Kotlin.
m
I did not read Effective Kotlin co I cannot comment on that unfortunately
b
read as much as you can! Or lest history is doomed to repeat itself 😄