-5

At my new work I am dealing with a quite big C/C++ project (50k lines in multiple files). I usually "draw" what the code is doing to understand its functioning but this time I am struggling a bit because of the code's size. Is there a technique that you use to such a purpose? The common algorithm notation with 2D shapes is a bit confusing with this size.

Thanks to anyone.

(I appreciate the downvotes if they come with an explanation)

Fra93
  • 101

1 Answers1

4

You need a higher level of abstraction to start out with.

Try grouping related classes together into a single box on your diagram.

For example, an eCommerce app might have one box for user management, one box for the shopping cart, one box for products, one box for checkout, etc.

You can then dig into each box individually and note that the products box may include "sub boxes" for inventory, prices, descriptions, images, etc.

The "sub boxes" may eventually break down into individual classes.

Note the links between the high level boxes are not necessarily direct 'control flow', but are more "these boxes are related and there are a bunch of interactions that occur between them".

Dan Pichelman
  • 13,853