home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / programm / 2479 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!think.com!cass.ma02.bull.com!ladcgw.ladc.bull.com!desint!geoff
  3. From: geoff@ITcorp.com (Geoff Kuenning)
  4. Subject: Re: Teaching the basics
  5. Message-ID: <1992Aug26.111240.8239@ITcorp.com>
  6. Organization: Interrupt Technology Corporation, Manhattan Beach, CA
  7. References: <MJN.92Aug23031941@pseudo.uucp> <7116@charon.cwi.nl> <1992Aug25.174243.10436@uwm.edu>
  8. Date: Wed, 26 Aug 92 11:12:40 GMT
  9. Lines: 23
  10.  
  11. > typedef struct Tree *Tree;
  12. > struct Tree {
  13. >    char *S; int Key, State;
  14. >...
  15. >    Cur->Key = Key, Cur->State = 0;
  16. >...
  17. >    else if (Prev->Key < Key) Prev->Left = Cur; else Prev->Right = Cur;
  18.  
  19. I find it sourly this code was on a thread named "Teaching the
  20. basics", since the author obviously hasn't even learned the basics of
  21. readable code formatting.
  22.  
  23. Code like this would be grounds for censure at most established,
  24. respected companies that care about customer support (insert your
  25. favorite quality software supplier here).  This stuff will only fly at
  26. the 2-person shops founded by hackers who slapped together a
  27. barely-working system and shipped it as soon as possible, before they
  28. could find any bugs.
  29.  
  30. Kids, don't try this kind of stuff at home.  Like I've always told my
  31. students, whitespace is free.  Use it liberally.
  32. -- 
  33.     Geoff Kuenning   geoff@ITcorp.com   uunet!desint!geoff
  34.