Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Advanced Code Documentation Beyond Comments and Docstrings

7 min readJan 18, 2022

--

Update: This article is part of a series. Check out Part 2, Part 3!

Press enter or click to view image in full size
Documentation using Sphinx hosted on Read the Docs — Image by author
Documentation using Sphinx hosted on Read the Docs — Image by author

Documentation shows users how to use or understand a project, and there are different types of documentation depending on the project type. This article is for you if you are working on Python projects — whether it is writing a Python package or just a personal project, and you want your audience to understand the high-level details of what the code is doing, but not how it is done.

Understandability is important for any project, and a project is only as good as its documentation; it is useless if people other than the developer do not understand how it works. Documentation enables different developers to collaborate more effectively and is especially crucial when a project is being handed over from one person to the next.

Proper documentation not only saves a lot of time taken to understand the code but also saves the amount of frustration when something goes wrong.

--

--

Kay Jan Wong
Kay Jan Wong

Written by Kay Jan Wong

Data Scientist, Machine Learning Engineer, Software Developer, Programmer | Someone who loves coding, and believes coding should make our lives easier

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.