KBD

Keith Devens .com

Saturday, March 20, 2010 Flag waving
And this too, shall pass. – often attributed to Abraham Lincoln
← JudoScriptPreemptible kernel patch tests →

Daily link icon Monday, October 28, 2002

Reading source code

I've always wondered this: How does an experienced developer dive into the code of a project he's never looked at before? I mean, do you look at the makefile, see where the main is, and try to follow the execution of the program? Or do you first look at the file layout to try to get an idea of how the app is structured? Do you just open a file that looks interesting and start reading, following the chain of included files around until you get an idea of what some important files are? How do you start building a mental model of the structure of an application while you still have incomplete information as you're reading the source, when you didn't have any documentation in the first place?

You get the idea. I bet people who are accustomed to reading other people's source on a regular basis have a definite process they go through, and the experience they have helps them grasp the structure of a program quicker than others would be able to. Are there any secrets?

← JudoScriptPreemptible kernel patch tests →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.105s.

(Used 8 db queries)