home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk1.iso / altsrc / articles / 11362 < prev    next >
Internet Message Format  |  1994-10-18  |  1KB

  1. Path: wupost!gumby!newsxfer.itd.umich.edu!zip.eecs.umich.edu!yeshua.marcam.com!usc!math.ohio-state.edu!uwm.edu!lll-winken.llnl.gov!noc.near.net!transfer.stratus.com!sw.stratus.com!det
  2. From: det@sw.stratus.com (Dave Toland)
  3. Newsgroups: alt.sources
  4. Subject: Re: Ugly code.
  5. Date: 18 Oct 1994 12:33:12 GMT
  6. Organization: pseudo-random
  7. Lines: 20
  8. Distribution: world
  9. Message-ID: <380fa8$5uq@transfer.stratus.com>
  10. References: <CxtEys.DKr@cs.dal.ca>
  11. Reply-To: det@phlan.sw.stratus.com
  12. NNTP-Posting-Host: phlan.sw.stratus.com
  13.  
  14. In article <CxtEys.DKr@cs.dal.ca>, franklin@ug.cs.dal.ca (Steve Franklin) writes:
  15. > This is some code for a solid-state assignment which computes the number
  16. > of neighbors from a central atom that are sqrt(1), sqrt(2), etc... away
  17. > from the central atom. Anyone able to make itany more compact or ugly?
  18. > It needs the math library, and it's ansi C. 
  19.  
  20. Why try to compete for how BAD you can code it?  It's kinda like competing
  21. for the loudest smelliest fart.
  22.  
  23. Why not for once compete for a clean, elegant, maintainable recoding???
  24.  
  25. By the way, the whole thing would be cleaner and less error prone, and
  26. would not require the use of floating point at all if only the square
  27. of the distance were calculated.
  28.  
  29. -- 
  30. --------------------------------------------------------------------------
  31. All opinions are MINE MINE MINE, and not necessarily anyone else's.
  32. det@phlan.sw.stratus.com   |  "Laddie, you'll be needing something to wash
  33. (Dave Toland)              |   that doon with."
  34.