Sometimes the hardest part of coding isn't writing the code. It's coming back to it the next day and trying to remember what you were doing.
You open your editor, look at a few files, and wonder why you changed something yesterday.
One simple way to avoid this is to leave a short note before closing your editor.
Nothing fancy. Just something like:
- What is working
- What is still broken
- What to try next
For example, a notes.md file might look like this:
Login works.
Error message doesn't disappear after submitting again.
Check the form state tomorrow.
That's enough. There's no need to write proper documentation for every little thing.
Another useful thing is to leave a comment near the code you're currently working on.
// TODO: Check what happens when the response is empty
Just remember to remove those temporary comments when you're done.
This is especially useful when working on side projects. Sometimes you don't touch a project for several days, and by the time you come back, you've forgotten half of what you were thinking.
Git history can tell you what changed, but it doesn't always tell you what you were planning to do next.
Of course, this isn't some amazing productivity hack. It's just a small habit that can save you a bit of time and frustration.
The note doesn't even have to make sense to anyone else. It just needs to make sense to you tomorrow.
Top comments (0)