KBD

Keith Devens .com

Tuesday, February 9, 2010 Flag waving
"What is truth?" – Pontius Pilate
← 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)
:

February 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28 



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

Recent comments XML

new⇒Why does Visual Studio suck ASS?

Look at '#pragma once' to get files​included only once....

Thomas Minor: Feb 8, 1:19pm

Generated in about 0.106s.

(Used 8 db queries)