Documentation Best Practices & Advices that work for me
Last Updated: September 17, 2025 by Pepe Sandoval
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...
Documentation trauma from school where it meant big long reports, lots of text that you are never going to read again
The idea that ALL that matters is the code, the algorithm, the implementation, the actual functionality
We are just lazy but then this usually means more work later, because we don't even remember how to run something we coded/created
Document stuff is a drag
"Documentar da hueva"
I don't document for my manager, nor for my peers, nor for other people in general, I document for myself so I can be lazy and work less later
I document now so I can be lazy later
The most efficient way of being lazy is to document
I automate so I can work less tomorrow
Think steps to install requirements or setup something are not as important as actual app
Put something on a personal folder
\\10.122.10.64\share\pepeuser\my_script.pyThink that because it works on your computer it will work anywhere
Keep things ONLY on an email thread, a chat, or other service where things can easily get lost among the sea of other stuff
Think that once you have something that works that means you are done
Let 'future you' worry about something
Think that lots of comments and text is good documentation
Think that every API and line of code needs to be documented and/or commented
Be concise
Have specific examples
Find a format/tool that clicks for you but I recommend something that can be easily searchable
(Optional) Find an organization method that clicks/works for you
ALWAYS Create good abstractions
enter and get a resultgit clone my_repopip install requirements.txtpython setup.pymake installpython my_script.py --helpmake test./my_script -hDocument how to run the most basic example/test of your code
Have a quick start guide or abstract with only the commands
Put stuff in a place where you can easily share them and track changes
In Jira or work tracking systems prefer update over add
Document how to run the most basic example/test of your code
Have a quick start guide or abstract with only the commands
Document thinking on your "future you" (be nice to him/her)
generate a table in markdown raw text explaining these input arguments
Generate a "How-to" guide in markdown showing step by step how to run this script, include steps to: clone repo, install requirements and command that shows an example of how to run the script, you can leave placeholders for the specific URLs and resources you cant infer
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...