DEV Community

Discussion on: How do you document your side projects?

Collapse
 
gwutama profile image
Galuh Utama • Edited

Regardless of side project or not I try to document the architecture using Kruchten 4+1 approach. It has helped me a lot to let others understand the big picture. For small projects I try not to describe the architecture too detailed.

Class and method docs can be automatically generated by different tools depending on language: sphinx, jsdoc, javadoc, doxygen, etc.

On the code level, i.e how to use this particular class or method, unit tests provide good examples on how to do that.

Collapse
 
mx profile image
Maxime Moreau • Edited

Oh, I didn't know the Kruchten 4+1 approach. Seems interesting, thanks!

Collapse
 
stereoplegic profile image
Mike Bybee

It's been forever since I used javadoc (or Java, outside of a few Android tweaks here and there), but I do recall it having the @example tag like JSDoc (not that you shouldn't be writing tests).