473,326 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Newb Naming Convention Question

JB
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
Apr 7 '08 #1
3 1746
On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
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

Apr 7 '08 #2
On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
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

Jun 27 '08 #3
Frank Stallone wrote:
On Mon, 07 Apr 2008 15:35:15 -0400, JB wrote:
>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.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: boxboy | last post by:
I am hoping someone from Microsoft could shed some insight into this question. Why did microsoft decide to use a verb based naming convtion for events rather such as Close and Click for rather...
27
by: Derek | last post by:
The company where I work uses a naming convention that I have never used before. They use mixed-case letters for public member functions, but lower-case with underscores for the rest, like this:...
3
by: C# Learner | last post by:
Why can't people abide by naming conventions?! It seems that most people have to have their /own/ custom convention.
4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
5
by: JaD | last post by:
I am trying to understand events and delegates which is confusing me. Okay I have a user control that derives from a GroupBox called (MyPanel) I added this: public delegate void Collapsed();...
14
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them......
4
by: Sturdy | last post by:
Hi, I'm new to C# and .NET. I'm a first time user of Visual C# 2005 Express and have a very basic question. I've looked at several links and lots of docs but can't find any tips on naming multiple...
114
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
9
by: Skye | last post by:
What is this doing? print >fd, _(__doc__) I'm guessing line-splitting __doc__ into a list, but what's that leading underscore do? Thanks!
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.