I'm fairly new when it comes to coding, and am currently working on my first project. It's just a simple discord bot in python.
I find myself documenting and writing notes on every small decision and step made, and trying to explain what things do.
For example, what py -m venv .venv does. What is the purpose of the aiohttp python library. What does pip freeze > requirements.txt do. Etc etc. You get the idea.
Being new to "real programming", I find documenting every little detail (especially something i've never seen before) useful for expanding my general programming knowledge. Obviously, I'm not documenting stuff like "what does a for loop do". Is this an effective way to learn while building projects?