POV-Ray : Newsgroups : povray.off-topic : code readability : Re: code readability Server Time
7 Sep 2024 15:22:12 EDT (-0400)
  Re: code readability  
From: Mike Raiford
Date: 26 Jun 2008 15:53:34
Message: <4863f3be@news.povray.org>
Warp wrote:
> Gail Shaw <initialsurname@sentech sa dot com> wrote:
>> Whereas I find the first far too spread out to be able to read easily
> 
>   Compactness does not imply readability. On the contrary.
> 

Case in point:

n=(i<12&&j>=i)?(sqrt(z)*y+j):(y+j*i);

vs

if( i < 12 && j >= i )
{
     n = sqrt(z) * y + j;
}
else
{
     n = y + j * i;
}

;)


Post a reply to this message

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