POV-Ray : Newsgroups : povray.off-topic : code readability : Re: code readability Server Time
7 Sep 2024 19:17:04 EDT (-0400)
  Re: code readability  
From: andrel
Date: 27 Jun 2008 16:09:25
Message: <4865492A.20706@hotmail.com>
Mike Raiford wrote:
> 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;
> }
> 
> ;)
I'd like to see the specification that gave rise to that snipped of code. ;)


Post a reply to this message

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