Hacker News new | ask | show | jobs
by pincubator 4443 days ago
Also can someone suggest what is the best way to approach code reading? When I open a library in Python, I am not sure where to start reading, just a bunch of files. Should I randomly pick one file and start reading from there? Is there any common strategy?
1 comments

I don't get much out of simply reading code. I have to get my hands in there and see how it works.

I load it into a repl and play around. See how changing little things effects tests. I add print statements to give a narrative. I draw diagrams of the code flow, especially startup, shutdown and sometimes error/exception handling.