Tools For Understanding Code? 383
ewhac writes "Having just recently taken a new job, I find myself confronted with an enormous pile of existing, unfamiliar code written for a (somewhat) unfamiliar platform — and an implicit expectation that I'll grok it all Real Soon Now. Simply firing up an editor and reading through it has proven unequal to the task. I'm familiar with cscope, but it doesn't really seem to analyze program structure; it's just a very fancy 'grep' package with a rudimentary understanding of C syntax. A new-ish tool called ncc looks promising, as it appears to be based on an actual C/C++ parser, but the UI is clunky, and there doesn't appear to be any facility for integrating/communicating with an editor. What sorts of tools do you use for effectively analyzing and understanding a large code base?"
Wait for cenqua's solution (Score:5, Funny)
Old School (Score:5, Funny)
You must have inherited my old project (Score:5, Funny)
Answer (Score:5, Funny)
Wait, were you talking about software?
I have an idea (Score:1, Funny)
Re:When I was your age... (Score:3, Funny)
When I was your age...I use the Mark I eyeball, grep, emacs, and of course, the little gray cells.
(and GET OFF MY LAWN).
They have lawns at the old folks' homes these days?
Re:Umm.. documentation? (Score:3, Funny)
Re:How / why did you get the job... (Score:5, Funny)
I used to work at a company with a lot of Pascal and C code... It was extremely common (as in, all but a few) for programs to be written entirely in one code file. These files would go on for 20,000 lines or more. So many lines in fact that after the compiler had imported the header files at the top of the file that they would be over 65,000 lines long and the debugger would crap out because it had exceeded the int that it used for line number counting.
Sadly this isn't a joke.
Re:Paper (Score:3, Funny)
Obviously a program with labels such as "Frodo" Sam" "Gondor" must be doing something Lordly with rings
and if you have labels such as "string1" "string2", then the program must be solving some particle physics problem involving string theory.
Need I add :-) :-) :-) ?
Solution (Score:5, Funny)
Error 'Format Conversion Error, converting from Y2K to Z2L' added to module x1
Error 'Out of Memory Banks' added to module x2
Error 'Object Expected; found adjective instead' added to module x3
Error 'bitbucket 95% full; please empty' added to module x4
Added 1,000,042 to some random value in module x5
Added 5,555,555 to some random value in module x6
Not only will you learn about the code, you'll make a great impression on your boss, when, within minutes, you are able to resolve some mysterious problem that has never happened before.
Re:Stepping Through (Score:2, Funny)
worse
advice
ever
Re:Been there... (Score:3, Funny)
Ah, so really there are two kinds of things: those which are dualities and those which are not?