I love Kotlin, and despite lack of tooling, I believe it's actually one of the most potent languages when it comes to AI based development, where my
claudine AI agent is writing majority of the code.
Kotlin code generated by Anthropic's models is usually flawless, allowing me to generate complete Kotlin based products in the span of minutes. The fact that Kotlin is a compiled language, allows to detect problems very early, and lets LLM correct them.
When working in typical TDD workflow:
• I load the whole project source code into the token window.
• Then I ask AI to generate a suite of comprehensive test cases for the requested feature, under my supervision, and Kotlin based DSLs are unbelievably practical in this case.
• Then we proceed with implementation, which might involve thousands lines of code. With each iteration AI agent can execute the build and verify the outcome in the feedback loop.
Sometimes it's going in circles. Sometimes I need to intervene. Sometimes it is forgetting some test case and removing it for no reason from the code. Working with version control during iterations is crucial. However, overall, it is order of magnitude more efficient workflow than me implementing a complete product or library myself.
I wonder how are you using AI in your Kotlin projects?