home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18827 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.6 KB  |  92 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!pipex!mfmail!nmp
  3. From: nmp@mfltd.co.uk (Nic Percival (x5336))
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec23.165659.3298@mfltd.co.uk>
  6. Sender: nmp@mfltd.co.uk (Nic Percival (x5336))
  7. Reply-To: nmp@mfltd.co.uk
  8. Organization: Micro Focus Ltd, Newbury, England
  9. References: <771@ulogic.UUCP> <1992Dec23.153137.13423@fcom.cc.utah.edu>
  10. Date: Wed, 23 Dec 1992 16:56:59 GMT
  11. Lines: 79
  12.  
  13.  
  14. In article <1992Dec23.153137.13423@fcom.cc.utah.edu>, swillden@news.ccutah.edu (Shawn Willden) writes:
  15. > hartman@ulogic.UUCP (Richard M. Hartman) writes:
  16. > [ Styles A and B deleted (you already know what they are) ]
  17. > : ... am I in the minority here by preferring style C:
  18. > : 
  19. > :     keyword (condition) 
  20. > :         {
  21. > :         statement1;
  22. > :         statement2;
  23. > :         statement3;
  24. > :         }
  25. > : 
  26. > : [...] consider this -- if you have:
  27. > : 
  28. > :     if (cond)
  29. > :         statement;
  30. > : 
  31. > : and then have to add another statement to it:
  32. > : 
  33. > :     if (cond)
  34. > :     {
  35. > :         statement;
  36. > :         statement2;
  37. > :     }
  38. > : 
  39. > : My editor (vi with auto-indent set) requires additional effort
  40. > : to move those braces back to the "outdented" position, whereas
  41. > This thread is entirely too polite.  Don't you people know that when
  42. > coding styles are discussed massive *FLAMAGE* and LOTS OF SHOUTING IS
  43. > REQUIRED TO DO THE SUBJECT JUSTICE???????
  44. > In keeping with internet custom I would suggest to Mr. Hartman that he
  45. > GET A LIFE AND A REAL EDITOR LIKE EMACS AND STOP SCREWING AROUND WITH
  46. > VI FOR HELLS SAKE MAN DONT YOU KNOW THIS IS THE 90S???!?!?!?  YOUR
  47. > PROBABLY ONE OF THOSE PINKOCOMMIE WHITESPACELOVING FREAKS TO!!!!
  48. > :         -Richard Hartman
  49. > :         hartman@uLogic.COM
  50. > --
  51. > Shawn Willden
  52. > swillden@icarus.weber.edu
  53. > P.S. I prefer style C myself
  54.  
  55. Get a life? Get a real editor like EMACS? At the risk of getting off the
  56. subject, EMACS is poo, full of disgusting cryptic control sequences
  57. (what was it CNTRL-X CNTRL-S to save?) and vi is quite wonderful and sexy
  58. and fun and great and etc etc.
  59.  
  60.  
  61.  
  62.  
  63. And as for white space I think thats nice too.
  64.  
  65. Oh yes. C layout.
  66. I like..
  67.  
  68.     keyword( fruitbat )
  69.     {
  70.         ocelot(PINKOCOMMIE);
  71.         etc etc..
  72.     }
  73.  
  74. Whether its possible to enter this 2.4 seconds faster or slower than the
  75. other format, I don't really care. Most code I've ever come across is like
  76. this, and I'll stick with it.
  77.  
  78. P.S I've got some macros for vi that solve mazes. Try that in poo. Sorry,
  79. EMACS.
  80. -- 
  81.   Nic Percival      |                               |
  82.   Micro Focus       | "Anything is good and useful  |   nmp@mfltd.co.uk
  83.   Newbury           |  if it's made of chocolate.." |   (0635) 32646 Ext 5336 
  84.   Berks, RG13 1JT   |                               |
  85.