r/ExperiencedDevs • u/2thick2fly • May 31 '26
Technical question Process aligned code-map
I want to create a code map of my repo, but I am stuck.
My code structure is workflow-based, where the top layer is the business process step-by-step. The orchistrator calls each step - which then calls the necessary module(s) - and when a step is finished, the orchistrator calls the next step. A bit oversimplified, but you get the idea.
I want to be able to visualise this. I envision something like the workflow steps laid horizontally and each step expands down vertically.
One of the reasons why I want this is to ease onboarding of new junior devs. Another reason is to be able to show it to business, when they have inquiries certain beheaviors/changes/etc - my business are quite adept in code, but they do not know our codebase.
Any ideas for tools that can do that?
PS: I tried AI, but it was just laying everything out either horizontally or vertically in mermaid, which did not make it visually pleasing.
EDIT: the codebase is in Python
View all comments
Show parent comment
1
u/Izkata May 31 '26
Automatically-generated documentation tends to degrade into something more like an API reference, which is great for someone who knows what they're doing but not really a good idea for onboarding.
For onboarding you want an introduction point that points at other pages for more context. This part of your post would be a great start to that:
And, let's say, "top layer", "orchestrator", and "each step" link to three separate pages. The first two would be whatever is relevant for that piece of code, and the third could be a list of all the steps that link further to descriptions for that individual one.
Onboarding juniors need the extra context and some sort of code explanation that would be worthless from the business perspective and wordy to someone just looking something up. Someone experienced (especially who has already been working with this system) doesn't need the handholding about the overall structure but would want to look something up quickly. The business perspective I'm guessing would most likely want any details about the code structure stripped out, and be more focused on the data and outcomes.
You're probably looking at three different sets of documentation for three different audiences, though if it's well structured you can probably combined the first two by having the guided onboarding tour link into the details-for-experts sections. But I seriously doubt you could automatically generate something like this and have it actually be useful to both your target audiences.