POV-Ray : Newsgroups : povray.object-collection : Avoid all-lowercase identifiers Server Time
21 Dec 2024 08:14:18 EST (-0500)
  Avoid all-lowercase identifiers (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
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

From: Thomas de Groot
Subject: Re: Avoid all-lowercase identifiers
Date: 5 Aug 2012 02:52:39
Message: <501e1837$1@news.povray.org>
On 5-8-2012 4:11, Alain wrote:
> 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...

Amen :-)

Thomas


Post a reply to this message

From: Le Forgeron
Subject: Re: Avoid all-lowercase identifiers
Date: 5 Aug 2012 04:06:03
Message: <501e296b$1@news.povray.org>
Le 04/08/2012 18:43, clipka nous fit lire :
> 
> 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.

Well, povclipse does.

The povray's Window editor does not, due to its old age.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Avoid all-lowercase identifiers
Date: 8 Aug 2012 11:35:01
Message: <web.502285e2c00137e585de7b680@news.povray.org>
"BertvdB" <ber### [at] kpnmailnl> wrote:
>  Rape, Murder
> Before you know they will stop attending church on sunday

I stopped going to church less than 2 years after discovering POV-Ray.
Coincidence?

I haven't raped or murdered anyone yet, though.  Satan needs to work on me a
little more.


Post a reply to this message

From: Alain
Subject: Re: Avoid all-lowercase identifiers
Date: 9 Aug 2012 17:54:08
Message: <50243180$1@news.povray.org>

> "BertvdB" <ber### [at] kpnmailnl> wrote:
>>   Rape, Murder
>> Before you know they will stop attending church on sunday
>
> I stopped going to church less than 2 years after discovering POV-Ray.
> Coincidence?
>
> I haven't raped or murdered anyone yet, though.  Satan needs to work on me a
> little more.
>
>

In my case, it's been over 40 years since I last went to a church. OK, I 
did visite some, but in the same way as one visit a museum, so, it don't 
count.

Nothing bad yet... :P


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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