Difference between revisions of "Code Reading Exercise"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | =Questions= | + | ==Questions== |
# Which file(s) did you have to examine? | # Which file(s) did you have to examine? | ||
Line 8: | Line 8: | ||
# Find and describe 2 differences between the code you examined in both projects. | # Find and describe 2 differences between the code you examined in both projects. | ||
− | <table> | + | ==Answers== |
+ | |||
+ | <table border="1"> | ||
<tr> | <tr> | ||
<td></td> | <td></td> | ||
Line 18: | Line 20: | ||
<tr> | <tr> | ||
<td>1</td> | <td>1</td> | ||
− | <td></td> | + | <td>main.c</td> |
− | <td></td> | + | <td>main.java</td> |
− | <td></td> | + | <td>filefunctions.cs, ... file for each command line function</td> |
− | <td></td> | + | <td>parameters.cs</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>2</td> | <td>2</td> | ||
− | <td></td> | + | <td>Overwhelming, hard to follow</td> |
− | <td></td> | + | <td>much easier to follow, easier to read</td> |
− | <td></td> | + | <td>easier to follow</td> |
− | <td></td> | + | <td>easier to follow</td> |
</tr> | </tr> | ||
<tr> | <tr> |
Latest revision as of 16:07, 20 January 2007
Questions
- Which file(s) did you have to examine?
- What are your first reactions to these files when you examine them?
- How is the code for working with command-line switches organized at the method, class and project levels? (e.g. is is all in one class? broken across multiple classes? spread across many methods? etc)
- How are invalid or non-existent Filenames dealt with?
- Find and describe 2 similarities between the code you examined in both projects.
- Find and describe 2 differences between the code you examined in both projects.
Answers
Make | Ant | NAnt | XBuild | |
1 | main.c | main.java | filefunctions.cs, ... file for each command line function | parameters.cs |
2 | Overwhelming, hard to follow | much easier to follow, easier to read | easier to follow | easier to follow |
3 | ||||
4 | ||||
5 | ||||
6 |