Oh i can answer this! Usually the best way to start off is to read the unit tests if they have any. This can usually point to what the code is trying to achieve if anything. Gives you a view of what methods are being used and for what purpose.
As others have said, tests are a great place to start. They give a bit more context. I also like looking for the entry point and seeing how the environment is created, and step through it from there.
4 comments
[ 2.9 ms ] story [ 20.6 ms ] threadHopefully not self promotion, but I wrote a blog on this a while back: https://ruairidh.dev/how-to-understand-a-new-codebase