Lukas Lechner

360° Android Development

Page 2 of 3

Slides from my presentation @ Droidcon Vienna 2018

Here are the slides from my presentation I gave @ – Droidcon Vienna 2018

Slides from my presentation @ Kotlin Night Brussels 2017

I spoke at the Kotlin Night in Brussels about “How Effective Java influenced Kotlin”. Here are the slides of my presentation.

How “Effective Java” may have influenced the design of Kotlin - Part 3

Hello to this new post! This is part 3 of my blog post series about “How the book Effective Java may have influenced the design of Kotlin.” I wrote the first and second part about half a year ago and thought that I figured out every aspect of how Effective Java could have possibly influenced the programming language Kotlin.

A few months ago however, I bought and read, what is, in my opinion, the best book on Kotlin: Kotlin in Action. It is written by Dmitry Jemerov and Svetlana Isakova, who are Kotlin core developers working at JetBrains. They definitely know what they are talking about. If you want to advance your Kotlin Knowledge to the next level, I definitely recommend you to read Kotlin in Action 📘!

While reading the book, I discovered new language features and design choices that were also likely to have been influenced by Effective Java.

Continue reading

How “Effective Java” may have influenced the design of Kotlin – Part 2

Hello again!

This is the second part of the blog series about how the book “Effective Java” may have influenced Kotlin’s design. Before continuing, take a look on the first part if you have not already read it.

Let’s continue!


6. Final classes by default

Item 17 in “Effective Java” suggests that every class should either not be sub-classable or be carefully designed and documented to support inheritance. In Java, every class can be subclassed unless you explicitly specify the class as final. If you forget to make the class final and fail to design and document it for inheritance, there will be trouble when clients think that they can create subclasses, override some methods and assume that everything will still work as expected.

Continue reading

How “Effective Java” may have influenced the design of Kotlin – Part 1

Java is a great programming language but has some known flaws, common pitfalls and not-so-great elements that have been inherited from its early days (1.0 got released in 1995). A well-respected Book on how to write good Java code, avoid common coding mistakes and deal with its weaknesses is Joshua Bloch’s “Effective Java.” It contains 78 sections, called “Items”, that give the reader valuable advice on different aspects of the language.

Continue reading

« Older posts Newer posts »

© 2020 Lukas Lechner

Theme by Anders NorenUp ↑