r/developersIndia • u/bonk_time • 3h ago
Suggestions How are you getting LLM to write precise, concise and maintainable code?
1.) The craft has now shifted to being able to write precise, concise, human readable specification documents which can be translated by the LLM model into clean and well structured code efficiently.
2.) The challenge is, LLMs do not work like compilers i.e they are non deterministic by nature and hence it is difficult to predict what it will generate when the prompt becomes more abstract and detailed.
3.) I fall in the mid-level engineer category and I find it so difficult to get the LLM to write concise and clean code for a task.
4.) Management keeps saying that I need to loosen heavily around the structure, design and code cleanliness and I think that is a recipe for disaster.
5.) I am young and I find myself once again confused and anxious about being in the right career
Question 1: In your workflow, how are you getting IDE agents to write precise, concise and well-structured code?
Question 2: If you create detailed specification documents for the LLM, how much time do you actually spend in creating the documentation itself as compared to iterative-prompting technique (you write prompt, code gets generated, you review it, you again write prompt and repeat)?
Question 3: How much time do you spend reviewing the code as compared to you would have spent in iterative-prompt-review technique?
Thanks.
