Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Studying code

Name: Anonymous 2008-01-03 13:29

If you have alot of code, say, 20 000 lines, how would you begin to understand it. I mean, would you just try to figure it out on the computer or would you print it out and study a copy on paper?

Name: Anonymous 2008-01-03 13:32

Use Emacs.

Name: Anonymous 2008-01-03 13:34

>>1
print it out and study a copy on paper

This is how they do it at enterprise. Do you print your emails too?

Name: Anonymous 2008-01-03 13:35

>>3
Surely going paperless is the most ENTERPRISE BEST PRACTICE of them all.

Name: Anonymous 2008-01-03 13:40

I shall add that the code is in Sepples and is not well commented.

Name: Anonymous 2008-01-03 13:42

>>4
But in one of the SICP videos sussman was talking about some algebra system in LISP that was 5000 pages. I don't think MIT is very ENTERPRISE.

Name: Anonymous 2008-01-03 13:42

>>5
Oh man, Sepples.

Wait, what's Sepples?

Name: Anonymous 2008-01-03 13:43

WHAT THE FUCK IS SEPPLES.

Name: Anonymous 2008-01-03 13:47

C++ idiot.

Name: Anonymous 2008-01-03 14:08

>>9
Trollee.

Name: Anonymous 2008-01-03 15:39

i normally start at the top, i mean if i want to find out how a certain output is created i try to find some static part of it in the code and trace back from that

it's harder if i don't, then i have to scroll through the code semi-quick until i find something i recognize, then i work from that, it's actually pretty simple, it just takes time sometimes

Name: Anonymous 2008-01-03 17:26

Assuming I want to get familiar with the whole program, I model the program structure using high level software development models. I use different models to document the lower level part of the code.

If I just wanted to tinker with a couple of parts of the program, I would run the code through the debugger and follow the logic that way.

Name: Anonymous 2008-01-03 17:36

I draw UML class diagrams of the entire system.
It worked for the Source SDK.

Name: Anonymous 2008-01-03 19:23

20.000 lines is not "alot of code".

Name: Anonymous 2008-01-03 19:39

>>14
no. 20, 000

Name: Anonymous 2008-01-03 19:47

>>15
4E20?

Name: Anonymous 2008-01-03 20:22

>>16
はい!

Name: Anonymous 2008-01-03 21:11

>>13
LOL NO YOU DIDN'T IDORT

Name: Anonymous 2008-01-03 21:14

>>10
Ha Ha

Name: Anonymous 2008-01-03 21:40

>>18
we don't want your kind around here, go away.

Name: Anonymous 2008-01-03 22:27

>>1
``[...]the code is obvious.''
-Expert programmers.

Name: Anonymous 2008-01-03 23:54

>>18
Yep, though I did use that valve developer wiki a lot
http://developer.valvesoftware.com/wiki/Category:Interfaces
In hindsight, I suppose I could have used doxygen or some other tool to generate the uml, but this way was more educational.
Another technique as someone else said, is to run the code under a debugger and see how things interact with each other.

Name: Anonymous 2009-03-18 3:24

I feel the need, the need for weed!

Marijuana MUST be legalized.

Don't change these.
Name: Email:
Entire Thread Thread List