News for hackers. Stuff that matters.
Re:Detekt – A static code analyzer for Kotlin by smith7018 on Thursday July 24, 2025 @09:16AM (#44670322)
Kotlin is much better than "Java, but just a little better."
Re:Detekt – A static code analyzer for Kotlin by c03 on Thursday July 24, 2025 @09:59AM (#44670762)
Kotlin has everything. A language isn't better just because it has more.

Its great for DSLs though.

Re:Detekt – A static code analyzer for Kotlin by PaulHoule on Thursday July 24, 2025 @10:13AM (#44670948)
Java is pretty good for DSLs too.
Re:Detekt – A static code analyzer for Kotlin by ohdeargodno on Thursday July 24, 2025 @01:23PM (#44673417)
Language.Builder().getOh().getYes().getJava().getIsSoNice().setFor(() -> { return "DSLs";});

No trailing lambdas, no infix operators, no @DslMarkers, no top level functions, and an infinite list of examples of Java verbosity making even the smallest thing look like an ancient greek epic. Java is utterly terrible for DSLs.

Re:Detekt – A static code analyzer for Kotlin by vips7L on Thursday July 24, 2025 @01:47PM (#44673749)

   Language {
       oh {
           yes {
              Java {
                  isSoNice
           }
       }
   }

You can contrive awfulness in any language.
Re:Detekt – A static code analyzer for Kotlin by PaulHoule on Thursday July 24, 2025 @04:00PM (#44675337)
The awfulness of one style of Java DSL is the awfulness of Lisp, that is

  building(of(S("expressions"),everything())
Re:Detekt – A static code analyzer for Kotlin by vips7L on Thursday July 24, 2025 @06:30PM (#44677083)
Not going to lie, my brain doesn't really comprehend lisp. So the joke (or point?) is way over my head.