logoalt Hacker News

never_inlinetoday at 10:48 AM0 repliesview on HN

You might want to try this, one step ahead of Ctrl+K

Define the interface and functions and let the AI fill in the blanks.

Eg: I want XYZ class with methodFoo and methodBar which connects to APIabcd and fetch details. Define classes for response types based on API documentation at ...., use localLibraryXYZ for ABCD.

This is the way I found to work well for me. I maintain a tight grip over the architecture, even the low level architecture, and LLM writes code I can't be bothered to write.

I find tab completions very irritating. They're "almost" correct but miss some detail. I'd rather review all of that at once rather than when writing code.