Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
chadd1746437yTry to find the main players. Look at what the end program does, break it down into functional chunks, then do a lot of Ctrl + F ing and breakpointing to find those chunks. Mark them immediately so you don't lose them. Pay attention to vars, params, and functions that pop up repeatedly.
There are also tools available to help with this sort of thing.
https://sourcetrail.com/blog/... -
nocgod17587yWell that's my 2 pennies:
a. find the main entry points to the application: API, UI (web/desktop), unit/functional/integration tests.
b. debug the main flows that you want to understand.
c. comment strange shit for later ref.
d. write unit/functional tests and refactor the most shitty parts, be sure to cover the code/flows you touch to ensure you don't fuck up.
e. fund people.of reference using blame and history of your SCM that might still be around and ask for a crash course if possible. -
tmux20197yStep 1) Pray code is well written
Step 2) Confirm dark fear of code being an absolute clusterfuck
Step 3) Get a big ass paper and draw the components and the program flow to get a bird's eye view and then read each file for specifics. -
orijin20217yThat's just one class of the 1000s in our legacy project ^^ none of them documented 😅
Don't have any good advice 'tho 😕
Burn it with fire? -
lolnick447y@CWins 1. Add comments as you make changes and/or research code to figure out how to make changes. 2. Place any special information in a document in a document in the format of your choice so other people can read it. 3. Be very patient.
Related Rants
30,000 lines of undocumented code. How do I deal with that?
undefined
code
undocumented
hell