News for hackers. Stuff that matters.
Re:Byte Buddy is a code generation and manipulation library ... by vips7L on Tuesday August 12, 2025 @12:38PM (#44878715)
I have wrapped my head around it. I think it's confusing to the reader and creates awkward semantics.
Re:Byte Buddy is a code generation and manipulation library ... by vips7L on Wednesday August 13, 2025 @12:52AM (#44884744)
What I mean by that is this:

   val a: SomeType? = null
   // I’m forced to null check here
   if (a != null) {
       a.someMethodOnIt()
   }
   // But I don’t have to null check here
    a.someExtensionFn()
It’s weird.
Re:Byte Buddy is a code generation and manipulation library ... by izacus on Wednesday August 13, 2025 @02:23AM (#44885202)
Yeah, extension functions are one of those features that went from 'oh, this is nice' to "this is so overused it's counterproductive".

It makes reading a lot of Kotlin source quite terrible.

Lately they've been shoveling a lot of similar magical "code comes from somewhere" features into a language, slowly giving it a C++ clutter type feel.