comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Is there any conventions style programming IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is there any conventions style programming IDL? [message #39088 is a reply to message #39086] Fri, 23 April 2004 10:56 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Michael Wallace" <mwallace_spam@spam.swri.edu.invalid> wrote in message
news:108h4fvomj43c49@corp.supernews.com...
>
> Dick Jackson wrote:
>
>> Mike Schienle has this available on the web:
>> http://www.customvisuals.com/IDL_Style.html
>
> This document combined with a couple of tips from David make a good
set
> of rules to follow. There are a couple things I think I'll adopt into
> my personal style. However, I have to disagree with the use of
> Hungarian notation. IDL is a weakly-typed, dynamic language and
> enforcing Hungarian rules removes some of the benefits of such a
> language. I don't have the time now to get into the details, but I
see
> it as more of a hindrance rather than a help.
>
> Hungarian notation is not suited to weakly-typed dynamic languages
such
> as IDL, Python or Perl or object-oriented languages such as Java or
C++.
> Hungarian notation does have it's place in the strongly-typed
> procedural languages like good ol' C. I actually use Hungarian
notation
> a lot when doing C -- it makes casting and variable type mistakes so
> much easier to catch.
>
> -Mike

For those who are wondering (like I was) "Hungarian Notation" refers to
what Mike Schienle suggests, as in:

Variables of type Byte shall begin with the letter "b"

A full description of this and other aspects of naming identifiers is
this article at Microsoft's MSDN site:

http://tinyurl.com/ezmr

I agree with Mike Wallace in general, but I find it useful to identify
two kinds of identifiers in special ways: objects and pointers. I do
this since we work with them in ways quite different from the other
types. For example, when I see variable pInfo, the 'p' reminds me that I
need to dereference with '*' before using the thing itself.

Just my CAD 0.02 (two Canadian cents' worth)

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Check marks on context sensitive menus
Next Topic: WHERE Command Bug with Floating underflow

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:09:44 PDT 2025

Total time taken to generate the page: 0.80100 seconds