News for hackers. Stuff that matters.
Re:Ask HN: How do you personally diagram code? by joergen7 on Monday April 26, 2021 @05:42AM (#26940820)
I use Petri nets. They allow me to diagram communicating systems, making explicit how active components (like functions or services) and passive components (like storage or i/o-devices) interact.

Petri nets have formal semantics easy enough to grasp (firing rule) and provide enough optical cues to make them readable at a glance.

With a little practice, nets can be visually appealing, which helps in presentations and publications. I use Inkscape as a drawing tool.

There are no comments on this comment yet.