Live data from Hacker News

Ask HN: As a programmer, How do you take notes while coding?

news.ycombinator.com

1–10 of 29 posts

Re: Ask HN: As a programmer, How do you take notes while coding?

#4
Depends. Usually a mix of comments in the code before committing, text files, markdown notes, and whatever internal task system we’re using (Jira-style).

I haven’t found a silver bullet that makes all of that feel cohesive. It's usually a balance between “what’s fast right now” and “what future me might understand.”

Re: Ask HN: As a programmer, How do you take notes while coding?

#7
Comments in the code for items that need to be addressed before final review. e.g. "XXX: Blah blah.." or "TODO: Investigate blah blah". For other types of notes useful to future me or someone else coming back to the task/feature in the future, mostly Jira comments

Re: Ask HN: As a programmer, How do you take notes while coding?

#8
If it is something I need to resolve for my current work, a comment: // TODO... And then I search for TODOs before pushing any code to the team.

If it is something to work on or research myself, but not part of the current work, I have a running TODO list in its own text file.

If it is something that anyone on the team could work on, I put notes or a task in whatever tracking system my team uses.

Re: Ask HN: As a programmer, How do you take notes while coding?

#9

For very intricate code - literally print code out and find a quiet corner and get a pen. Reduce distractions. Mark it up like I’m reading a complex piece of literature.

I do this, too, but I also delete all the comments before printing to avoid cognitive bias induced by the comments.
Post reply on HN