Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old April 7th, 2008, 08:45 PM
JB
Guest
 
Posts: n/a
Default Newb Naming Convention Question

In the couple of languages I've been using the most, it has been
standard practice to use some type of Hungarian Notation.

This does not seem to be the case with most of the java I've seen so far
as I've been trying to learn. Is there any "standard" hungarian for
Java - I like using it.
--
Still Playing NWN1? Like retro-gaming? Try my (free, of course) PW:
http://games.groups.yahoo.com/group/LotV
  #2  
Old April 7th, 2008, 11:15 PM
Frank Stallone
Guest
 
Posts: n/a
Default Re: Newb Naming Convention Question

On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
Quote:
In the couple of languages I've been using the most, it has been
standard practice to use some type of Hungarian Notation.
>
This does not seem to be the case with most of the java I've seen so far
as I've been trying to learn. Is there any "standard" hungarian for
Java - I like using it.
Hope this helps.

http://jdj.sys-con.com/read/36533.htm (see the bottom with the prefix
suggestions)

Also, here is some advice as to why it's not ideal to use:
http://forum.java.sun.com/thread.jsp...sageID=3864893



  #3  
Old June 27th, 2008, 05:16 PM
Frank Stallone
Guest
 
Posts: n/a
Default Re: Newb Naming Convention Question

On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
Quote:
In the couple of languages I've been using the most, it has been
standard practice to use some type of Hungarian Notation.
>
This does not seem to be the case with most of the java I've seen so far
as I've been trying to learn. Is there any "standard" hungarian for
Java - I like using it.
Hope this helps.

http://jdj.sys-con.com/read/36533.htm (see the bottom with the prefix
suggestions)

Also, here is some advice as to why it's not ideal to use:
http://forum.java.sun.com/thread.jsp...sageID=3864893



  #4  
Old June 27th, 2008, 05:16 PM
Mishagam
Guest
 
Posts: n/a
Default Re: Newb Naming Convention Question

Frank Stallone wrote:
Quote:
On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
>
Quote:
>In the couple of languages I've been using the most, it has been
>standard practice to use some type of Hungarian Notation.
>>
>This does not seem to be the case with most of the java I've seen so far
> as I've been trying to learn. Is there any "standard" hungarian for
>Java - I like using it.
>
Hope this helps.
>
http://jdj.sys-con.com/read/36533.htm (see the bottom with the prefix
suggestions)
>
Also, here is some advice as to why it's not ideal to use:
http://forum.java.sun.com/thread.jsp...sageID=3864893
>
Java differs from many languages because it has more or less standard
code conventions, created by SUN and used, as far as I know, more or
less by everybody. Look here:
http://java.sun.com/docs/codeconv/
These conventions doesn't use Hungarian notation, and so very few Java
programmers use them.

It is very different from C++, where there are many competing standards,
some of which (Microsoft) use Hungarian notation. I think, in Microsoft
case there was sense in Hungarian notation - because in early Windows
(and in current Windows also) most types were the same (integers or
handlers) - and it was impossible for compiler to distinguish them. So
Hungarian notation helped to ensure type safety.

In Java case type safety is insured by language (most variables have
clearly defined types), and type errors are very quickly shown by
compiler or in run time, so you can free variable names from easily
obtained information.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles