News for hackers. Stuff that matters.
Re:Detekt – A static code analyzer for Kotlin by jascha_eng on Thursday July 24, 2025 @08:57AM (#44670119)
The worst thing about kotlin is the intellij lock in. VSCode support is exceptionally poor and that makes using modern AI tooling (like cursor) a pain.
Re:Detekt – A static code analyzer for Kotlin by kle on Thursday July 24, 2025 @09:18AM (#44670342)
I agree, but I can strongly recommend Claude Code with the Intellij plugin. Actually works pretty great for kotlin!

And, JetBrains finally started working on an open language server. It's not perfect but it makes it bearable to at least edit Kotlin in Cursor/VS Code.

https://plugins.jetbrains.com/plugin/27310-claude-code-beta- https://github.com/Kotlin/kotlin-lsp

Re:Detekt – A static code analyzer for Kotlin by cardanome on Thursday July 24, 2025 @10:25AM (#44671115)
I just have Cursor open in another window for the agent mode while I do my editing with intellij (or other jetbrains products).

I would never voluntary do any editing in VS Code or forks of it. It is just so slugish on large files. Plus there is always subtle things that annoy me, I can't even describe it, it just feels off. I hope Zed takes off as it is a bit more tolerable though still not there yet.

Re:Detekt – A static code analyzer for Kotlin by PaulHoule on Thursday July 24, 2025 @09:10AM (#44670243)
Java has also improved greatly since JDK 7 so the need for JDK languages that are Java, but just a little better, is less than it was.
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.
Re:Detekt – A static code analyzer for Kotlin by BrandonSmith on Thursday July 24, 2025 @10:15AM (#44670977)
Kotlin ecosystem extends way beyond the Java runtime. I have apps developed in Kotlin running in browsers and iOS, in addition to Android.
Re:Detekt – A static code analyzer for Kotlin by vips7L on Friday July 25, 2025 @10:13PM (#44690719)
You can do that in Java too. TeaVM, JavaFX, pick your poison.
Re:Detekt – A static code analyzer for Kotlin by jlengrand on Thursday July 24, 2025 @09:27AM (#44670436)
Won’t be true for long any more since they just officially announced they’ll be releasing the language server.
Re:Detekt – A static code analyzer for Kotlin by llm_nerd on Thursday July 24, 2025 @09:24AM (#44670399)
When did you last use IntelliJ? It has excellent AI tooling.
Re:Detekt – A static code analyzer for Kotlin by simon_void on Friday July 25, 2025 @08:54AM (#44682594)
Jetbrains is working on an LSP: https://github.com/Kotlin/kotlin-lsp It was announced at KotlinConf 2025.