RU beehive logo ITEC dept promo banner
ITEC 325
2017spring
ibarland

homelectshws
D2Lbreeze (snow day)

grading-guide-key
general grading guide

Some common errors, marked with greek letters (lower-case). (See also, common proofreading marks.)


1Some people dislike the conditional-operator for readability reasons: I agree, it's far too easy to lose the characters “?” and “:” in the rest of the statement. To ameliorate that, I suggest putting two spaces around those characters, and perhaps putting the entire expression in parentheses (or sometimes just the initial condition in parentheses). I prefer languages where the conditional has the same syntax as a function, e.g. Excel's “=IF(n<0, 0, n)” or Racket’s “(if (< n 0) 0 n)”. Regardless, being in the habit of returning an answer for both branches of the if helps reduce bugs.      

homelectshws
D2Lbreeze (snow day)


©2017, Ian Barland, Radford University
Last modified 2017.Feb.08 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.