Hacker News new | ask | show | jobs
by lemming 19 days ago
A friend of mine who works a lot with AI commented that working with AI was making him develop like a grownup for the first time. Turns out that all the best practices really do carry over, but the consequence of not doing it is greater with agents.
2 comments

Same here, bigtime.

AI has forced me to write out more planning documents. Not waterfall strategic planning, but tactical planning such as describing the desired behavior of a script before I write it, or pre-registering a data analysis and my expected findings in writing before I start querying data -- that goes in a PLAN.md within whatever folder I'm working on at the moment.

I now keep a systematic todo list that I call TASKS.md, which groups tasks into topical sections and every task has an ID, such as MD3 or EV7.

I also keep an append-only-ish journal of results, findings, unfinished thoughts, rejected ideas, etc.

All of that goes right into my project Git repo. It works great for both AI agents and humans.

But perhaps more interesting than my new workflows, is that I actually learn things from the AI. The idea to start pre-registering all my little analyses, not just the big tasks, was a Claude-ism that I've since adopted even when I'm not using AI.

I do TODO.md instead of TASKS.md but what's the benefit of giving each task an ID? Just easier for you to refer to a specific task? I usually just paste the whole line if I need to refer to it, but given it a short ID might not be a bad idea.
Yeah, the main benefit is being able to refer to specific items rather than ambiguously referring to patterns that might be misinterpreted by the model.
Yes, that. And -- in keeping with the theme -- it's just as useful for me, the human, as it is for the model. I can even cross-link them to Jira items, so I can say things like "task EV5 corresponds to Jira subtask DS-7491 within story DS-7389".

Also this is in the context of data science, so I often have a big and ever-growing list of secondary analyses I could run, and each one ends up with a small pile of source code. This actually lets me organize my code around the IDs, so I can have a directory like `analysis/EV7/` with its own little PLAN.md and README and some .sql and .py files and a .ipynb to pull together the results (and/or a small AI-generated data explorer app). And then later if I need to refer to those results I can write a comment like "parameter derived from EV7 results" or whatever.

git logs are a bit of a pain to search through and also perhaps not the place to insert long instructions, I do remember looking at some repo and just browsing the list made me quickly find what was intended during development.
Same here. Before I was too lazy on projects where I was solo developer to follow best practice and writing clean code. Now I do it.