POV-Ray : Newsgroups : povray.off-topic : code readability : Re: code readability Server Time
7 Sep 2024 19:15:45 EDT (-0400)
  Re: code readability  
From: Invisible
Date: 27 Jun 2008 09:47:37
Message: <4864ef79$1@news.povray.org>
Warp wrote:

>   Compactness does not imply readability. On the contrary.

I'd say that there is only a fairly weak correlation (positive or 
negative) between compactness and readability.

   x = 2*y*y*y - 3*a*b

is much more readable than

   t1 = y*y
   t2 = y*t1
   t3 = 2*t2
   t4 = a*b
   t5 = 3*t4
   t6 = t3-t5

despite being much more compact. Counter-examples in the opposite 
direction are not hard to find either.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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