drc@claris.com (Dennis Cohen) (10/03/89)
mlw@pyr.gatech.EDU (Michael Williams) writes: > ... >matter of personal preference. In fact, I have the following preference: > for i := 1 to 10 do begin > x := a[i]; > b[i+1] := x + 10; > end; >The "begin" does not waste a line on my screen, allowing me to see more of >my program. The "end" lines up with the "if", "for", or "while" statements, >allowing quick and easy alignments of scope. And further, to echo a previous poster, all you have to do to switch between Pascal and Modula-2 when using this style is to insert/eliminate the "begin" and everything still is fine (so long as you capitalize keywords, which Michael doesn't and I do). The thing I really don't understand is what the fuss is about this whole subject. From the early days of Pascal, one of the most popular "utility" programs was the source reformatter. These reformatters are extremely powerful and fast today (take a look at PasMat, under Apple's Macintosh Programming Workshop), allowing a wide variety of options and doing the work for you that is clearly "gruntwork". If a faculty member/grader really wants a consistent format, then all (s)he has to do is run the sources through one of these tools, with the options set to match personal preferences.
conan@vax1.acs.udel.EDU (Robert B Carroll) (10/03/89)
I think the instructor should think up a project that has to be done by a groups of 5 people each. Let them think up there own standard using guidelines set up by the instructor. If the standard isn't followed consistently throughout the whole 'project' then take off 1/3rd. The you'll see what the fuss about having a 'standard' is about. -- conan@vax1.acs.udel.edu OR conan@192.5.57.1 ********************************************************************** ****The Hardest Disc Golf courses are in the world are in delaware**** **********************************************************************