r/AskProgramming • u/HardSpongee • Jul 31 '26
How do developers manage with little to no documentation on a project?
2 months ago I joined a company with 1 business analyst. I was able to get my tasks moving because the tech lead pretty much explained verbally what was meant to be implemented on a ticket. But now the tech lead is leaving, the project is a mess, there's a lot of undocumented business logic in people's heads. Now when the tech lead leaves I'm not sure how I'll manage, and already the manager expects me to know what the hell is going on!
Has anyone been in a similar position, where there's no documentation, barely any analysis, received a ticket and immediately wonder "what the hell am I expected to do here!"? What did you do to get your sh*t together?
This is so new to me, I might eventually not be able to get past the 6 months probation
17
u/Slow-Bodybuilder-972 Jul 31 '26
No documentation on a project is the norm, in 25 years, I’ve never seen any project with good docs.
The logic is documented, the code is the documentation.
3
u/VoiceOfEric Jul 31 '26
There are developers with documentation?
2
u/MiddleLtSocks Jul 31 '26
The BA isn't doing their job.
Just make sure you publicly ask about ambiguities that are blocking you and be sure your direct report knows you are blocked on waiting for the answer. It should be common sense that you can't implement a feature without knowing how the feature works.
Don't be obstinate about it - you can ask in ways in which it's clear that you are willing and ready to help ("I naively assume it would work like this: (describe) But I don't want to implement based on assumptions; we really ought to have a bespoke specification").
But you aren't asking for anything you shouldn't have. Don't be afraid to speak up. Don't carry others on your back.
24
u/JohnCasey3306 Jul 31 '26
As a contractor I've made a career out of it. I get dumped into horrendous, failing products/systems, with zero documentation, very often nobody technical left in the business (certainly nobody senior), and just told to crack on.
The fortunate combination of my autism and code's deterministic nature means that I pretty solve the problem by writing the documention for them first and foremost.
3–6 months later I hand off a well documented, performant and working platform to the newly hired tech team.
3
u/schlaubi Jul 31 '26
Sorry, that I have to say it. Use AI. That's where it excels.
10
u/Cybyss Jul 31 '26
This is normal.
Use your debugger and step through the code line by line to see how each feature of the application works. Inspect the value of every variable each step of the way, exactly what sql commands run at what times and how they change your database, etc...
It takes time, but that's like 80% of your job now.
Very often, you'll find that what the application really does is nothing like what everybody thinks it does.
1
u/AggravatingSock5375 Jul 31 '26
Dunno. I’m trying my best to get other devs to document things at my work and it’s……difficult. There’s job security in being the only one who knows how something works.
My workaround is to dump stuff into AI and ask it to explain for me. Usually works quite well.
8
u/Lumpy-Notice8945 Jul 31 '26
Run
3
u/platinum92 Jul 31 '26
Been in a company exactly like this for a while, even including the departed tech lead. My advice is:
The bigger problem you're going to contend with is making documentation "a thing". Best thing you can do is start documenting new things you build as you go.
2
u/sortaeTheDog Jul 31 '26
welcome to 90% of roles. I act as a lead a small frontend team and also do work on the backend. When i work on the frontend we strive for documentation and consistency, but when I jump on the backend (managed by another team), i spend most of my time having to ask one person to be told "ask that other person" and so on. I often spend half a day just waiting for someone to reply to my messages.
2
u/x39- Jul 31 '26
There is two ways here:
And the technical third one: Run
The rest is intuition. If something breaks in userland, you usually can guess what the culprit is.
2
u/YahenP Jul 31 '26
Welcome to our world.
I've been working for almost 40 years. And in all that time, the instances where documentation exists can be counted on one hand. And the instances where it was relevant and comprehensive... Generally speaking, such instances have never happened.
This is the specificity of our industry. And it's one of the reasons why programming isn't considered a true engineering profession.
Tribal knowledge is the basic of all software products.
2
u/Delta-9- Jul 31 '26
I bet the tech lead is one of those "I write self-documenting code" types.
Saying it loud for the people in the back:
SELF-DOCUMENTED MEANS UNDOCUMENTED.
As to what you can do about it: pretty much what JohnCasey3306 does: read the code and write the docs yourself. You'll probably have to meet with lots of people to get it done, since the nature of business logic is that some of it has no technical need to exist so only someone outside the engineering team can explain why it's there.
2
u/mongous00005 Jul 31 '26
The code is the documentation.
1
u/cakemates Jul 31 '26
long nights reading and documenting, asking people and banging my head against a wall until it all makes sense.
1
u/BaronOfTheVoid Jul 31 '26
The pragmatic solution for that today is to rely on AI explaining the code to you. It will have its faults but it will be of help more often than not.
1
u/kubisfowler Jul 31 '26
I took their money to the point they were willing to pay, and got dismissed after the 6 months probation. Basically exact same situation, including the tech lead who left AND the owner working 4 other jobs on the side (welcome to Central/Eastern Europe)
1
u/Independent_Fall9160 Jul 31 '26
My current company has lots of undocumented data... I have a favorite query i wrote. Basically, it loops through all databases i have access to and gives high level information (row count for table, non missing counts, min and max value, datatype, column name, table name, database name, schema name.
With that, i can try finding how tables are mapped.
I dont have access to the websites code or is use that more... One of the companies they acquired had something like 'press shift over a value in the web portal to see the column name used' (it was a decade ago so i dont exactly remember) which was pretty damn nice
1
u/Paul_Pedant Jul 31 '26
You probably would be better off not working for a manager who is lazy enough to let this happen, and dumb enough not to see the need to change the methodology (or lack of it). The tech lead is leaving because he can see how bad things are going to be in a few months.
1
u/pyeri Jul 31 '26
If I were in your shoes, I'd push hard for a proper code walkthrough and technical handover session. Try and catch hold of them before they leave and ask for all the inputs you can.
Ideally, we should have API documentation for everything but it's understandable when a project is moving fast and the project managers are sitting on your head for deadlines! There are situations when other things become so critical that documentation is one of those that easily skip through the radar.
1
u/Inside_Dimension5308 Jul 31 '26
The process of documenting is a pain. It will always be incremental. You cannot expect people to keep updating all the docs to latest changes. It will be a huge tech debt and will slow down releases. There are ways to make incremental Documentation but that is not what you asked.
Assuming, you dont have Documentation, how do you navigate through system architecture.
With AI, it is easier to just pass your github access, infra access, ci, cd, observability metrics to AI and ask AI to summarize your system architecture. That is the first step. We can discuss if you dont want to use AI.
1
u/turkokratia Aug 01 '26
😄 do the good thing for the world and start writing the documentation yourself after that. but i am pretty sure you wont keep it up after a week. even if you do, no one will read it. even if someone does read it, they will still come ask you anyway, just to understand it or to be sure. so... thats the reality here.
1
u/Elara_Schaefer Aug 02 '26
The approach that saved me more than once: write characterization tests before changing anything. Not unit tests for new code, but tests against the existing behavior. Call the endpoints, assert the responses, capture edge cases. You end up with a test suite that documents what the system actually does, not what someone thinks it should do. Two things make this work. One, run the tests in a recording mode where failing assertions log the actual behavior instead of breaking the build. This way you build the documentation incrementally without needing to understand everything upfront. Two, focus on the boundaries first, API contracts and data flow between services. The internals you can figure out from there, but if you don't understand the contracts first you'll reverse-engineer the wrong things. The LLM approach mentioned above works well for this, but pair it with tests so you have something that stays accurate after the LLM session ends.
0
u/Useful_Calendar_6274 Jul 31 '26
ask an LLM to explain you stuff
-1
u/ivanhoe90 Jul 31 '26
I think that it is usually faster and cheaper to recreate a project from scratch than trying to learn how an undocumented code works.
BTW. if you throw all the source code at some modern AI model, it can give you clues on how it works.