Questions tagged [hungarian]
9 questions
38
votes
13 answers
Do you prefix variable names with an abbreviation of the variable types? (Hungarian Notation)
In my current job, there are no coding guidelines. Everyone pretty much codes the way he wants. Which is fine, since the company is small.
However, one new guy recently proposed to always use Hungarian Notation. Until now, some of us used some sort…

bastibe
- 1,359
- 2
- 12
- 17
30
votes
7 answers
Is hungarian notation a workaround for languages with insufficiently-expressive static typing?
In Eric Lippert's article What's Up With Hungarian Notation?, he states that the purpose of Hungarian Notation (the good kind) is to
extend the concept of "type" to encompass semantic information in addition to storage representation…

Ryan C. Thompson
- 621
- 5
- 10
22
votes
8 answers
What is the appeal of Systems Hungarian?
In a now deleted question titled "What naming guidelines do you follow?", the author says:
Also I prefer to code using hungarian notation from Charles Simonyi.
I've run in to several programmers who still prefer to use Hungarian, mostly of the…

AShelly
- 5,793
- 31
- 51
15
votes
12 answers
Are type and scope prefixes worthwhile naming conventions?
Recently starting my first job as a software developer, I was a little thrown to be told that I did not have to follow any naming conventions in my code. Code written by groups working on other, larger projects followed naming conventions, but since…
f100
9
votes
3 answers
Struggling not to use Hungarian notation
I've seen arguments for and against Systems Hungarian.
For some years I've been working on a legacy project that uses this system by naming every variable, function with a prefix of the variable type eg (strName, intAge, btnSubmit etc) (I know the…

fearoffours
- 781
- 6
- 18
2
votes
4 answers
"Is" prefix and "On" suffix as reasonable exceptions to a "non-hungarian" naming standard?
First, I believe I've seen this question discussed here before, but I cannot find it. My apologies if you do find it.
I'm starting a new project, and trying to figure out why IsResolved and/or ResolvedOn make more sense to me than Resolved.…

shannon
- 123
- 5
2
votes
5 answers
What happened to the this type of naming convention?
I have read so many docs about naming conventions, most recommending both Pascal and Camel naming conventions. Well, I agree to this, it's ok. This might not be pleasing to some, but I am just trying to get your opinion on why you name your objects…

Smith
- 643
- 5
- 14
0
votes
2 answers
Why do we use hungarian notations on local variable but not on function or global variable?
That doesn't seem to make sense.
In local variable, we sort of know the type anyway. It's local. We're working on it.
Yet in function name or global variable, the definition is very far away on other files. It seems that hungarian notations make far…

user114310
- 125
- 1
- 6
-2
votes
1 answer
System Hungarian Notation for Android UI components?
Is using System Hungarian Notation for Android UI components (Views) valid? I mean using it ONLY for Views - no strSomething, boolStuff or similar names.
For example, tvDescription (TextView), editUsername or txtUsername (EditText), btnSubmit…

Anxxy1
- 17
- 1