News for hackers. Stuff that matters.
Re:The Hitchhiker's Guide to Kotlin by dehrmann on Tuesday September 21, 2021 @10:12PM (#28612438)
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.

Re:The Hitchhiker's Guide to Kotlin by bberrry on Wednesday September 22, 2021 @04:11PM (#28621138)
Why would you use companion objects for loggers? The logging library should only create one instance when you do getLogger({name or class}).