Forgetting code the next day

I’ve felt something similar before — not constantly, but every now and then I do come back to a project and feel a bit disconnected from what I was doing. It’s not severe, but enough to slow me down if I’m not careful. What helped me was building a small organization system around my code so I don’t have to rely purely on memory.

I usually break the project into smaller, focused modules, each with a clear purpose. I also give both my local and public functions descriptive names so it’s easy to understand what each one does at a glance. That alone makes it much easier to regain context when I return to the project.

Something else that helps me a lot is leaving short notes about what I’m working on or what I plan to do next. I put them as block comments at the very top of the module — kind of like a quick “state of the project” snapshot. They’re simple, but they save me from that “wait… what was I doing?” moment when I open the file again.

I already have my own way of organizing my code, but I recently found a post that might be really helpful for you too: Rules That I Follow for My Luau Programming.

5 Likes