What are the best tools for learning a new codebase?

Locked
Ganemi
Posts: 564
Joined: Thu Apr 21, 2005 12:57 pm

What are the best tools for learning a new codebase?

Post by Ganemi »

This is pretty intense.

http://i.imgur.com/aKWZfVj.jpg

That's not the particular portion of code I'm skimming through, but is there any better way to understand the code that I am using?
D-Meat
Posts: 159
Joined: Tue May 17, 2011 8:52 am

Re: What are the best tools for learning a new codebase?

Post by D-Meat »

Eeeh ... Your brain ?

Personally I just dig where functions are connected using the search tools of my beloved notepad++.

One really useful thing is to print up with colours the variable definitions (specially the gentity_t) so you can check it up anytime !

I remember writing down some functions to really tick in what's going on.
[url=http://www.dmitri-engman.fr/]My blog[/url] - [url=http://dmeat.free.fr/book/]My portfolio[/url]
---------------------
[url=http://lvlworld.com/#c=m1&i=1908&d=12%20Dec%202012&m=All&p=review]MJDM2[/url] - [url=http://lvlworld.com/#c=m1&i=2108&d=12%20Dec%202012&m=All&p=review]DmeatSP01[/url] - [url=http://lvlworld.com/#c=m1&i=2132&d=12%20Dec%202012&m=All&p=review]DmeatSP02[/url]
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: What are the best tools for learning a new codebase?

Post by Eraser »

Get a good IDE like Visual Studio (the community edition is free)

What I usually do is come up with some very simple features I'd like to add or edit, something that won't require you to refactor half of the internal data structures. Preferably it's something that you can point at in a user interface or in the game and say "I made/changed that". It allows you to learn some of the flow through the code. That way, you can gradually dig deeper and make more abstract changes in due time.
Ganemi
Posts: 564
Joined: Thu Apr 21, 2005 12:57 pm

Re: What are the best tools for learning a new codebase?

Post by Ganemi »

Image

I'm finding doxygen, winmerge, and vs10 pretty useful for figuring things out.
Locked