POV-Ray : Newsgroups : povray.object-collection : Avoid all-lowercase identifiers Server Time
3 Dec 2024 12:20:11 EST (-0500)
  Avoid all-lowercase identifiers (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: Cousin Ricky
Subject: Avoid all-lowercase identifiers
Date: 31 Jul 2012 23:50:01
Message: <web.5018a69dae7e89cb85de7b680@news.povray.org>
It has long been a POV-Ray recommendation that identifiers have at least one
uppercase letter, although this is not enforced.  This recommendation has
practical significance, as we recently saw in "Spanish Patio -Parse Error" in
povray.general.

I propose that this recommendation be incorporated as policy into the Object
Collection naming standards.  In other words, in order for a submission to be
rated "fully compliant," all identifiers introduced must have at least one
uppercase letter.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Avoid all-lowercase identifiers
Date: 1 Aug 2012 02:59:49
Message: <5018d3e5$1@news.povray.org>
On 1-8-2012 5:46, Cousin Ricky wrote:
> It has long been a POV-Ray recommendation that identifiers have at least one
> uppercase letter, although this is not enforced.  This recommendation has
> practical significance, as we recently saw in "Spanish Patio -Parse Error" in
> povray.general.
>
> I propose that this recommendation be incorporated as policy into the Object
> Collection naming standards.  In other words, in order for a submission to be
> rated "fully compliant," all identifiers introduced must have at least one
> uppercase letter.
>

I second that.

Thomas


Post a reply to this message

From: clipka
Subject: Re: Avoid all-lowercase identifiers
Date: 1 Aug 2012 10:55:18
Message: <50194356$1@news.povray.org>
Am 01.08.2012 08:59, schrieb Thomas de Groot:
> On 1-8-2012 5:46, Cousin Ricky wrote:
>> It has long been a POV-Ray recommendation that identifiers have at
>> least one
>> uppercase letter, although this is not enforced.  This recommendation has
>> practical significance, as we recently saw in "Spanish Patio -Parse
>> Error" in
>> povray.general.
>>
>> I propose that this recommendation be incorporated as policy into the
>> Object
>> Collection naming standards.  In other words, in order for a
>> submission to be
>> rated "fully compliant," all identifiers introduced must have at least
>> one
>> uppercase letter.
>>
>
> I second that.

I third that.


Post a reply to this message

From: Alain
Subject: Re: Avoid all-lowercase identifiers
Date: 3 Aug 2012 19:18:03
Message: <501c5c2b@news.povray.org>

> Am 01.08.2012 08:59, schrieb Thomas de Groot:
>> On 1-8-2012 5:46, Cousin Ricky wrote:
>>> It has long been a POV-Ray recommendation that identifiers have at
>>> least one
>>> uppercase letter, although this is not enforced.  This recommendation
>>> has
>>> practical significance, as we recently saw in "Spanish Patio -Parse
>>> Error" in
>>> povray.general.
>>>
>>> I propose that this recommendation be incorporated as policy into the
>>> Object
>>> Collection naming standards.  In other words, in order for a
>>> submission to be
>>> rated "fully compliant," all identifiers introduced must have at least
>>> one
>>> uppercase letter.
>>>
>>
>> I second that.
>
> I third that.
>
I totaly agree with all of you.


Post a reply to this message

From: BertvdB
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 04:20:01
Message: <web.501cda11c00137e5d25d21bf0@news.povray.org>
As a addition to this, why don't we use the hungarian notation. Makes coding
much clearer.
http://en.wikipedia.org/wiki/Hungarian_notation
This will explain what I mean


Post a reply to this message

From: Le Forgeron
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 12:16:54
Message: <501d4af6@news.povray.org>
Le 04/08/2012 10:15, BertvdB nous fit lire :
> As a addition to this, why don't we use the hungarian notation. Makes coding
> much clearer.
> http://en.wikipedia.org/wiki/Hungarian_notation
> This will explain what I mean

Because there is so few "types" in SDL. Value, vectors... from 2D to 5D...
what else ? a spline ?

Hungarian notation is dead. Let it rest.

Better use meaningful identifiers!


Post a reply to this message

From: clipka
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 12:43:54
Message: <501d514a$1@news.povray.org>
Am 04.08.2012 18:16, schrieb Le_Forgeron:
> Le 04/08/2012 10:15, BertvdB nous fit lire :
>> As a addition to this, why don't we use the hungarian notation. Makes coding
>> much clearer.
>> http://en.wikipedia.org/wiki/Hungarian_notation
>> This will explain what I mean
>
> Because there is so few "types" in SDL. Value, vectors... from 2D to 5D...
> what else ? a spline ?
>
> Hungarian notation is dead. Let it rest.

It's dead because modern IDEs have stuff like "IntelliSense" that allow 
you to see a variable's type just by hovering the mouse over it. 
POV-Ray's IDE doesn't have such a feature.

It's also quite a common practice in POV-Ray to prefix function names 
with "f", texture variables with "t" or "tx", material variables with 
"m" or "mt", etc.

That said, I absolutely, positively agree that Hungarian notation should 
/not/ be forced on anyone - just like any other religion :-P


> Better use meaningful identifiers!

Always a good idea, whether using Hungarian notation or not.


Post a reply to this message

From: BertvdB
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 16:25:01
Message: <web.501d8421c00137e5d25d21bf0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> That said, I absolutely, positively agree that Hungarian notation should
> /not/ be forced on anyone - just like any other religion :-P
>
>
> > Better use meaningful identifiers!
>
> Always a good idea, whether using Hungarian notation or not.
 Rape, Murder
Before you know they will stop attending church on sunday


Post a reply to this message

From: Alain
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 22:10:51
Message: <501dd62b$1@news.povray.org>

> clipka <ano### [at] anonymousorg> wrote:
>> That said, I absolutely, positively agree that Hungarian notation should
>> /not/ be forced on anyone - just like any other religion :-P
>>
>>
>>> Better use meaningful identifiers!
>>
>> Always a good idea, whether using Hungarian notation or not.
>   Rape, Murder
> Before you know they will stop attending church on sunday
>
>
>
Anyway, religions are only feeble attempts at making sence of the world 
around us when you lack the proper tools and knowlege.
Look at the Bible, ponder how many centuries it have been passed along 
by oral tradition, and you can only conclude that it's a compilation of 
legends, miths, tall tales, fables and fire side stories...


Post a reply to this message

From: Cousin Ricky
Subject: Re: Avoid all-lowercase identifiers
Date: 4 Aug 2012 22:35:00
Message: <web.501ddac3c00137e585de7b680@news.povray.org>
"BertvdB" <ber### [at] kpnmailnl> wrote:
> As a addition to this, why don't we use the hungarian notation. Makes coding
> much clearer.
> http://en.wikipedia.org/wiki/Hungarian_notation
> This will explain what I mean

The purpose of the naming standard is to insure that the various modules work
well with each other, not to enforce political correctness.  I would add playing
nice with POV-Ray itself, which is why I made my suggestion.  While Hungarian
notation, or a less dogmatic variation thereof, may be a good idea, it does not
further the purpose of the standard.


Post a reply to this message

Goto Latest 10 Messages Next 4 Messages >>>

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