4 ms·
If it's not obvious just by looking at how the directories are structured, and files are named, generally I find that everything is (or should be) relatively ea
by datashovel 11y ago
If it's not obvious just by looking at how the directories are structured, and files are named, generally I find that everything is (or should be) relatively easy to understand if you start from the perspective of a user.
1) Read docs for how to USE the library if they exist
2) Review example code that describe how a person would use the library to accomplish tasks.
3) In order to start diving in, find a specific example that does something interesting, then hop in from there. Read the code within the methods / functions the user calls, then the functions / methods called inside those, etc.
4) As you dig deeper you may start finding that you understand, or you'll start building up your own hypotheses like "If I change X to Y in this function then something different should happen when I call it". Try it out, and see if your hypothesis is correct.
After a few iterations of doing something like this you'll probably start getting an idea of how the code is structured and where you'd need to go in order to make the changes you'd like to make, or add the features you want to add.