POV-Ray : Newsgroups : povray.off-topic : code readability Server Time
7 Sep 2024 15:23:52 EDT (-0400)
  code readability (Message 21 to 30 of 73)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: stbenge
Subject: Re: code readability
Date: 26 Jun 2008 18:26:45
Message: <486417a5@news.povray.org>
Orchid XP v8 wrote:
> stbenge wrote:
> 
>> Of course if I were programming for a living, I would probably go to 
>> school where they would teach me how to write code that people could 
>> decipher :)
> 
> Don't count on it! ;-)

I should take *some* C++ courses, considering my near-total confusion 
when trying to use Irrlicht recently... I'm pretty much clueless when it 
comes to classes and such.


Post a reply to this message

From: Stephen
Subject: Re: code readability
Date: 26 Jun 2008 19:54:46
Message: <m1b86415b67sqdojgmt2b46f0uu930up14@4ax.com>
On Fri, 27 Jun 2008 01:26:58 +0300, Eero Ahonen
<aer### [at] removethiszbxtnetinvalid> wrote:

>Warp wrote:
>> 
>>   I disagree.
>> 
>
>Good, 'cause you're wrong.

I can't help but agree with you.
-- 

Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: code readability
Date: 26 Jun 2008 19:58:51
Message: <39b864d8vq6a336ve630j2rkpgovcpfm33@4ax.com>
On Thu, 26 Jun 2008 21:56:40 +0100, Orchid XP v8 <voi### [at] devnull>
wrote:

What happened to you? I thought that you were coming for a drink
tonight?
-- 

Regards
     Stephen


Post a reply to this message

From: Jim Charter
Subject: Re: code readability
Date: 26 Jun 2008 20:14:59
Message: <48643103$1@news.povray.org>
Halbert wrote:
> 
> Why doesn't the rest of the world understand that?
> 

But they do understand.  Each in his own way.


Post a reply to this message

From: Leroy Whetstone
Subject: Re: code readability
Date: 26 Jun 2008 23:48:53
Message: <48644299.3050707@joplin.com>
I'm a rebel I use both ways and other ways.
If the 'if' condition is short I put it all line.
if it's a little longer maybe the line below

Readable is minor compared to the total lack of documentation people use 
in their C and c++ programs.


Post a reply to this message

From: scott
Subject: Re: code readability
Date: 27 Jun 2008 03:19:49
Message: <48649495@news.povray.org>
> I, for one, find it much easier to read C++ code which is braced like 
> this:

Me too, that's how I code and how I code in POV too.  I think it looks much 
nicer spaced out like that, I think of the braces as a way to force a line 
of white-space (apart from the brace character, obviously) above and below 
blocks of code.


Post a reply to this message

From: Invisible
Subject: Re: code readability
Date: 27 Jun 2008 05:06:15
Message: <4864ad87@news.povray.org>
Stephen wrote:

> What happened to you? I thought that you were coming for a drink
> tonight?

Oh.

I thought I said I'd check whether I'm available and get back to you? 
[Which admittedly I never did...]

Turns out I had to move furnature around instead. Sorry about that...

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


Post a reply to this message

From: Stephen
Subject: Re: code readability
Date: 27 Jun 2008 05:47:46
Message: <5pd964tqt0ev1988cec5cskuiv58g3q5rr@4ax.com>
On Fri, 27 Jun 2008 10:06:14 +0100, Invisible <voi### [at] devnull> wrote:

>Stephen wrote:
>
>> What happened to you? I thought that you were coming for a drink
>> tonight?
>
>Oh.
>
>I thought I said I'd check whether I'm available and get back to you? 
>[Which admittedly I never did...]
>
>Turns out I had to move furnature around instead. Sorry about that...

Good job we waited in the pub ;)
-- 

Regards
     Stephen


Post a reply to this message

From: Invisible
Subject: Re: code readability
Date: 27 Jun 2008 05:49:55
Message: <4864b7c3$1@news.povray.org>
>> Oh.
>>
>> I thought I said I'd check whether I'm available and get back to you? 
>> [Which admittedly I never did...]
>>
>> Turns out I had to move furnature around instead. Sorry about that...
> 
> Good job we waited in the pub ;)

Oh well - I hope you lot enjoyed yourselves even if I didn't. Heh. ;-)

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


Post a reply to this message

From: Tim Nikias
Subject: Re: code readability
Date: 27 Jun 2008 09:13:31
Message: <4864e77b$1@news.povray.org>
Gail Shaw wrote:
[...]

> Whereas I find the first far too spread out to be able to read easily and
> use the second as my standard code layout in C-like languages

Heh, that reminds me... Some guy actually wrote code like this:

if (DoNot == 0)
{



	DoThis = true;



} else {



	DoThis = false;



}


This was a few years back and on old university monitors, so he didn't 
actually have much more than 10 commands TOTAL on screen at any given 
time. How you keep an overview over the entire algorithm in that manner 
is lost on me, and obviously on him, too: he didn't get his code working 
in three weeks.

Regards,
Tim


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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