I have written a couple of posts about cons of blind use of AI for writing code for Bioinformatics. Don't take me on the AI bashing side, I myself use Claude Code and Cursor. The AI coding assistants help me writing code faster for sure.
Here is how I extract the most out of them reliably.
1. ๐ฆ๐ฒ๐ ๐๐ฝ ๐๐ผ๐๐ฟ ๐ฎ๐๐๐ถ๐๐๐ฎ๐ป๐๐ ๐ฝ๐ฟ๐ผ๐ฝ๐ฒ๐ฟ๐น๐ ๐ณ๐ผ๐ฟ ๐ฎ ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐
Before starting on a project, spend time in defining a plan. Could be in form of claude.md in Claude Code or .cursorrules in case of Cursor. Mention all considerations, for ex: folder structure, test cases, overall intent, rules etc. Do these docs well with examples, intent and structure.
2. ๐ฆ๐๐ฎ๐ฟ๐ ๐๐ถ๐๐ต ๐ฎ ๐ฐ๐น๐ฒ๐ฎ๐ฟ ๐๐ฎ๐๐ธ, ๐ป๐ผ๐ ๐ฎ ๐๐ฎ๐ด๐๐ฒ ๐๐ถ๐๐ต
Even for specific tasks, instead of "help with this bug", I describe the goal and constraints.
"Given this function, add input validation and clear error msg. Do not change the public API."
Task first prompts consistently produce better code.
3. ๐๐ฒ๐ฒ๐ฑ ๐ถ๐ ๐๐ต๐ฒ ๐ฟ๐ถ๐ด๐ต๐ ๐๐น๐ถ๐ฐ๐ฒ ๐ผ๐ณ ๐ฐ๐ผ๐ป๐๐ฒ๐
๐, ๐ป๐ผ๐ ๐๐ต๐ฒ ๐๐ต๐ผ๐น๐ฒ ๐ฟ๐ฒ๐ฝ๐ผ๐๐ถ๐๐ผ๐ฟ๐
I open the relevant files, select the function/module, and add a comment about what it should do and then let IDE take care of it. Assistants perform best when the context is small and focused, not with a dump of thousands of lines.
4. ๐๐ผ๐ป'๐ ๐ฎ๐ฐ๐ฐ๐ฒ๐ฝ๐ ๐๐ต๐ฒ ๐๐๐ด๐ด๐ฒ๐๐๐ถ๐ผ๐ป๐ ๐ฏ๐ ๐๐ ๐๐๐๐ถ๐๐๐ฎ๐ป๐๐ ๐ฏ๐น๐ถ๐ป๐ฑ๐น๐.
Developers often accept AI suggestions with less scrutiny than they would from a human. Don't do that. Ask the assistants to explain the approach & reasoning, consider alternatives and weigh pros & cons. Treat the assistant like a smart junior developer. Always assume "this is a good draft, but I must verify it".
5. ๐ก๐ฒ๐๐ฒ๐ฟ ๐ฐ๐ผ๐บ๐บ๐ถ๐ ๐ฐ๐ผ๐ฑ๐ฒ ๐๐ผ๐ ๐ฑ๐ผ ๐ป๐ผ๐ ๐๐ป๐ฑ๐ฒ๐ฟ๐๐๐ฎ๐ป๐ฑ
Big rule. If I cannot explain what the AI generated line by line, I do not ship it. I step through the logic, run it in a small sandbox, and only then let it near main.
6. ๐๐ฒ๐ฒ๐ฝ ๐๐ฒ๐ฐ๐๐ฟ๐ถ๐๐ ๐ฎ๐ป๐ฑ ๐ฝ๐ฟ๐ถ๐๐ฎ๐ฐ๐ ๐ถ๐ป ๐๐ต๐ฒ ๐ฐ๐ผ๐ป๐๐ฒ๐
๐ ๐๐ผ๐ ๐๐ต๐ฎ๐ฟ๐ฒ
I avoid pasting secrets, API keys, real customer data or anything sensitive into prompts or shared traces. I use example data and clearly label it as such.
7. ๐ฆ๐ผ๐ณ๐๐๐ฎ๐ฟ๐ฒ ๐ฒ๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ๐ถ๐ป๐ด ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐๐ถ๐น๐น ๐บ๐ฎ๐๐๐ฒ๐ฟ ๐ฒ๐๐ฒ๐ป ๐บ๐ผ๐ฟ๐ฒ
Plans, tests, good code practices, documentation and code review habits matter even more when a model is helping you write code. Be the driver behind the AI, don't let it make decisions on an autopilot. Be responsible for quality and maintainability.
Used this way, Claude Code, Cursor or any other IDE help you write the kind of code you are proud about, just with less grunt work and more focus on the interesting parts.
Back to Writing
Guide
Coding with AI
๐ง๐ต๐ฒ๐ฟ๐ฒ ๐ถ๐ ๐ฎ ๐ด๐ผ๐ผ๐ฑ ๐๐ฎ๐ ๐๐ผ ๐ฐ๐ผ๐ฑ๐ฒ ๐๐๐ถ๐ป๐ด ๐๐ ๐ฎ๐ป๐ฑ ๐ต๐ฒ๐ฟ๐ฒ ๐ถ๐ ๐ถ๐....
January 1, 2026
3 min read
AI