IntelliJ is excellent for Kotlin, on par or better than for Java. It's unsurprising as Jetbrains basically uses Kotlin to sell IntelliJ.
Re:Java 24
by fiddlerwoaroof on Tuesday March 18, 2025 @12:06PM
(#43401067)
Do things like inline method and inline base class work correctly? It’s not a given that IntelliJ is works correctly for Kotlin if the semantics of Kotlin are harder to analyze statically.
> avoid ugly things like Spring's autowiring of dependencies.
This seems awfully close to "avoid Spring" to me, heh.
Though, I've grown rather fond of Spring Boot over time, but I've gathered that's not exactly the popular consensus.
Re:Java 24
by fiddlerwoaroof on Tuesday March 18, 2025 @11:31PM
(#43408047)
> This seems awfully close to "avoid Spring" to me, heh.
Exactly :)
Spring is perfectly usable without `@Autowired`, at least outside of test classes. SonarQube has a rule that helps avoiding it. Just use constructor injection instead.
Re:Java 24
by fiddlerwoaroof on Wednesday March 19, 2025 @09:12PM
(#43418994)
Any form of dependency injection by classpath scanning is an antifeature
Classpath scanning is completely optional.
Constructor injection is still autowiring. Spring used to demand that you annotate constructor arguments with @Autowired but that changed some time ago.
I haven’t really given kotlin a fair try, but I find it ugly the couple times I’ve tried to work with it.
What I’m really curious about: do IntelliJ’s refactorings work as well for kotlin as Java? I find the refactoring tools make up for Java’s shortcomings as a language.