POV-Ray : Newsgroups : povray.newusers : selecting several thousand lines in pov file : Re: selecting several thousand lines in pov file Server Time
30 Jul 2024 20:17:22 EDT (-0400)
  Re: selecting several thousand lines in pov file  
From: Warp
Date: 16 Sep 2003 12:10:28
Message: <3f6735f4@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:
> Concerning use of 'cat' - of course it is never necessary to use it for 
> one file but it produces much more readable code in many situations, 
> especially if the program used requires the stuff from stdin (and you 
> would have to use 'program < mesh2.pov').

  Whether

cat file | program options

  is more readable than

program options file

  is a question of taste. The upper version can be very confusing to
people who don't know what cat does, what a | does and why the program
doesn't seem to be taking any file at all, while the second one seems
more clear.
  Besides, the latter is easier to write.

  Just a question: Why teach newbies wrong habits from the start? Why not
teach them good habits to begin with?

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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