R. Clayton (rclayton@monmouth.edu)
(no date)
(Can you tell it's web-log reading Friday for me?)
One of the points I probably didn't emphasize enough in 509 was that many of
the points I repeatedly emphasized during class are not C++ specific, but are
generally applicable in most programming situations. Certainly some of those
points - for example, use strings, not character arrays - are specific to c++,
but most of them are useful advice in general.
To illustrate my point, this exercise
http://b9.com/archives/000036.html#000036
in lisp program redesign uses three old (and, I hope, familiar) favorites:
small code is good code (lisp programmers often fail to follow this one),
duplicate code is bad code, and avoid loops (using the generic algorithms in
C++ or maps in lisp). The fourth point (use consing efficiently) has no direct
analog to c++, but is probably closest to don't use explicit dynamic memory.
This archive was generated by hypermail 2.0b3 on Fri May 09 2003 - 15:30:05 EDT