POV-Ray : Newsgroups : povray.advanced-users : A point on programming : Re: A point on programming Server Time
30 Jul 2024 12:21:29 EDT (-0400)
  Re: A point on programming  
From: Nieminen Mika
Date: 10 Aug 1999 03:35:47
Message: <37afd653@news.povray.org>
Matt Giwer <mgi### [at] giwersworldorg> wrote:
: 	As another point, there is no reason to put a routine outside of
: your loop as a macro unless there is a conditional inside your
: loop to do to different macros.

  There is one important (and sufficient) reason: Modularity.
  Dividing your code into small modules (even if you use that module in
only one place in your main code) will save you from lots of trouble if
your code grows quite big. It also makes it easier to modify your code
afterwards (specially if you use the module in more than one place but
also if you only use it in one place, since you can find it more easyly).

: Programming is not a college
: test. Programming is productivity. 

  You can do good programming and you can do bad programming. It's not about
college tests or anything. It's about making your own life easier. They
teach good programming for a reason.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.