▲ | Defletter a day ago | |||||||
Kotlin can be fairly pleasant to write but it's so incredibly unpleasant to inspect. For example, Ktor is the Kotlin backend framework, but good luck figuring out how any of it works. It's a complete mess of "higher-order functions", extension methods, and other abstraction-hell as to make it extremely difficult to figure out what is executed when and under what circumstances. Basic Kotlin code is fine, great even, but once people stop writing Kotlin as Java developers, but as Kotlin developers, then it goes downhill fast. | ||||||||
▲ | Tmpod a day ago | parent | next [-] | |||||||
Can't speak about Ktor in particular, but most DSLs I've used are essentially just syntax sugar for the builder pattern, stream-like APIs and so on. I don't think it's bad per se, you just have to think a bit differently when you're inspecting code. But again, could be wrong about Ktor specifically. | ||||||||
▲ | jackpeterfletch 19 hours ago | parent | prev | next [-] | |||||||
Interesting. Coming from Spring to Ktor, being able to easily inspect the internal workings has been one of my favourite bits! It’s ‘advanced’ kotlin in there for sure, and takes some learning of the internal plumbing, but having everything not hidden behind annotations has been great. Just a CMD+click on whatever Ktor DSL/plugin API your using and you can immediately start to follow along / debug what it’s actually doing. | ||||||||
| ||||||||
▲ | qcnguy a day ago | parent | prev [-] | |||||||
[dead] |