Hacker News new | ask | show | jobs
by dehrmann 1727 days ago
I tried Kotlin, but I went back to Java. Interacting with Java libraries can be OK, but it can also get ugly. Using companion classes for loggers seems overkill. I didn't like having to explicitly cast ints to longs.

I ended up going back because Java's getting better--var and records help with some of the pain--the tooling is simpler and more reliable, and working with something like Hadoop was significantly harder.

1 comments

Why would you use companion objects for loggers? The logging library should only create one instance when you do getLogger({name or class}).