POV-Ray : Newsgroups : povray.advanced-users : Object Oriented POV code : Re: Object Oriented POV code Server Time
29 Jul 2024 06:18:35 EDT (-0400)
  Re: Object Oriented POV code  
From: Andreas Kaiser
Date: 24 Feb 2004 19:05:38
Message: <06nn30d5mm6n9obft2tquhgr82le6s4jok@4ax.com>
On Sun, 22 Feb 2004 12:33:36 -0500, Christopher James Huff wrote:

>In article <n8ag309hemfhpmj8jnt5j5s3k8gr66rm62@4ax.com>,
> Andreas Kaiser <aka### [at] nurfuerspamde> wrote:
>
>> This might be a 'learning' problem if you aren't aware of the
>> operators 'hidden' complexity. 
>
>Only if the code is poorly designed. You shouldn't have to care about 
>the hidden complexity. It doesn't matter one bit how the = operator 
>copies a string, only that it does so.

This was meant from a newbie's point of view where 'a *= b' might
appear to be faster than a call to 'MyMatrixMultiplyMatrixEq(a, b)'.

>> >So do functions.
>> 
>> Yes, same problem here. There's no correlation between length of
>> function name and complexity. 

Oh, I see, I forgot the smiley.
Please read it as "... 'problem' ...".

>It's not a problem. It's a feature. Code written without functions is 
>called spaghetti code, it ain't pretty and it is very inefficient and 
>unmaintainable. Or should functions that do more have longer names?

This is what I wanted to point out.

> How long should POV-Ray's main() function be?

As short as possible.

-- 
Andreas


Post a reply to this message

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