3 ms·
To understand code quickly, I recommend grabbing the source repo and adding it to an IDE so you can easily jump from a function call to it's declaration etc and
by osrec 8y ago
To understand code quickly, I recommend grabbing the source repo and adding it to an IDE so you can easily jump from a function call to it's declaration etc and just hop around the code. Sometimes, however, an IDE can get in the way, and it's easier to just use grep in a terminal to see where a particular function call is used/defined.
Eventually, you do build up some intuitions about code style and flow within a particular code base and will be able to comprehend it faster, but often it can simply be a painstaking process.
- svet_0 8y agoAnother option is an indexing engine suck as OpenGrok or source insight. These are often simpler to setup than an IDE, and yet provide a good 'read-only' environment for exploring a code base.