Wiggins, et al --

Perhaps not so off-topic, actually...  Style is important.

...and then Wiggins d'Anconia said...
% 
% R. Joseph Newton wrote:
% 
...
% >those posting here seem particularly fascinated by tightly packed 
...
% 
% This is an interesting comment (and I agree to a point). I am curious if 
% the people that post mainly one liners here actually code that way in 
% their non-mailing list lives, I would doubt it (and obviously it depends 

I admit that I'm one of those fascinated by the one-liner; I like to be
able to provide an answer that someone can paste into a shell and have
it run and demonstrate the procedure.  It's also fun to hack up such code
when I want a particular little something -- but I admit that I surround
the elegant and trim hack with comments so I remember what I was doing
when I read it later ;-)

In general, my code looks like

  code ;                # comments tabbed to char 57
  code ;                # and fairly frequent
  conditional or loop   # often noting beginning and end of blocks
  {
    2 space indents ;
    more code indented this way ;       # comments might be shoved over :-)
  }
  other conditional
    { one-line block ; }
  code ;
  code ;

or so; I'm very picky about my indentations and brace placement, and I
comment often but not in prefixing blocks.


...
% Just an interesting comment........

Agreed!  I know that we've gone into coding styles a bit, and it was
fun to learn some of the BSD and ATT style history, but verbosity and
readability are good topics for beginners (and the advanced :-) to
contemplate.


% 
% http://danconia.org


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg35994/pgp00000.pgp
Description: PGP signature

Reply via email to