Open main menu

CDOT Wiki β

Changes

User:Lkates

4 bytes removed, 17:06, 18 January 2007
Code Reading Exercise
.Find and describe 2 similarities between the code you examined in both projects.
.#Both of the programs process switches, then look at files.#Both use a seperate class/method to process the command line switches
.Find and describe 2 differences between the code you examined in both projects.
.#'''Make''' uses structures and flags to error check their flags. In a way, the switches error check themselves. '''Ant''' uses a bunch of if blocks and exceptions. It has to error check the switches..#'''Make''' has a bunch of very obfuscated comments laced throughout the code. '''Ant'' puts all their documentation right before each function, and each piece of documentation is, like, 3 paragraphs long and is presented in very plain English.
.If you have time, try modifying one of the programs to add a new command-line switch that is your learn ID. The switch doesn't have to do anything, or can do something very trivial. (A prize to the first group that does this successfully!)
1
edit