From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_50,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,97188312486d4578 X-Google-Attributes: gidfc89c,public X-Google-Thread: 109fba,baaf5f793d03d420 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,97188312486d4578 X-Google-Attributes: gid103376,public X-Google-Thread: 10db24,4cf070091283b555 X-Google-Attributes: gid10db24,public X-Google-Thread: 1014db,6154de2e240de72a X-Google-Attributes: gid1014db,public From: patrick@broadvision.com (Patrick Horgan) Subject: Goto considered really harmful Date: 1996/08/30 Message-ID: <507oru$3lk@ns.broadvision.com>#1/1 X-Deja-AN: 177609950 references: organization: The quite unorganized Patrick reply-to: patrick@broadvision.com newsgroups: comp.edu,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.unix.programmer Date: 1996-08-30T00:00:00+00:00 List-Id: Forwarded by: patrick@broadvision.com (Patrick Horgan) Forwarded-by: spaf@cs.purdue.edu (Gene "Chief Yuckster" Spafford) Forwarded-by: Patrick Tufts From: rad@via.East.Sun.COM ( Bob Doolittle - Sun Parallel Open Systems) Along these lines, when I was at UC Santa Cruz (late 70s), we still had some crusty profs who insisted that punched cards built character. Since it was an ivory tower, the dogma of "goto's considered harmful" was religiously taught. So some grad students decided that negative reinforcement was needed, and modified the PASCAL compiler's listing generator, so that upon detecting a goto statement it would generate a full 132 columns of '-' characters, followed by a carriage return w/o linefeed, and print this line about 50 times, on the same line of the output. This had the effect of chopping right through the lineprinter output at the goto statement, cutting the paper in half, which jammed the lineprinter, requiring operator intervention. This *really* pissed the operators off, and generally resulted in a high-decibel stream of abuse directed at the poor slob of an undergrad who submitted the job. Pretty effective, all in all. You certainly could hear the change in lineprinter melody when one of these listings was being generated, and that was a good time to find some forgotten errands that needed running elsewhere. -- Patrick J. Horgan patrick@broadvision.com Have horse will ride. Opinions mine, not my employer's except by most bizarre coincidence.