Click here to Skip to main content
15,358,470 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why the world hates Hungarian notation? Pin
TheGreatAndPowerfulOz5-Apr-12 5:18
MemberTheGreatAndPowerfulOz5-Apr-12 5:18 
GeneralRe: Why the world hates Hungarian notation? Pin
jschell5-Apr-12 9:40
Memberjschell5-Apr-12 9:40 
GeneralRe: Why the world hates Hungarian notation? Pin
MehGerbil5-Apr-12 2:18
MemberMehGerbil5-Apr-12 2:18 
GeneralRe: Why the world hates Hungarian notation? Pin
MSBassSinger5-Apr-12 5:44
professionalMSBassSinger5-Apr-12 5:44 
GeneralRe: Why the world hates Hungarian notation? Pin
MehGerbil5-Apr-12 5:49
MemberMehGerbil5-Apr-12 5:49 
GeneralRe: Why the world hates Hungarian notation? Pin
MSBassSinger5-Apr-12 5:53
professionalMSBassSinger5-Apr-12 5:53 
GeneralRe: Why the world hates Hungarian notation? Pin
Fran Porretto5-Apr-12 2:55
MemberFran Porretto5-Apr-12 2:55 
GeneralRe: Why the world hates Hungarian notation? Pin
ferahl5-Apr-12 3:29
Memberferahl5-Apr-12 3:29 
I used Hungarian notation in C++ all the time as it is close to the machine and so things like pAddress and ppAddress and dwAddress and lpdwAddress and wAddress, or sStructure and tTypedef etc are very useful distinctions.

With higher level languages I tend not to annotate strings, and booleans are usually posed as a question like hasLoaded, isUserFemale. Though annotations to suggest private / protected variables like the underscore (_) I still find useful. We don't often have to consider whether something is 16, 32, or 64bits long though, and we rarely access raw pointers so pAddress and ppAddress have less use, and sStructure and tTypedef are generally just full classes at the detriment to performance. Also we use var a lot and let the compiler define the type so this is another factor.

The next factor is the IDE, if the solution is fully integrated like in MS Visual Studio then you can easily go to the definition or hover over the variable so it is less necessary. Though as you say C&P'ing snippets elsewhere and you won't always know what they are though you can usually guess primitives and anything complex you will need the class/structure/typedef anyway.

So I would say - carry on for C/C++, ASM etc but for higher level language where vars are often chosen at compile or even runtime then sometimes it is ok to leave it out.
GeneralRe: Why the world hates Hungarian notation? Pin
Fabio Franco5-Apr-12 4:39
professionalFabio Franco5-Apr-12 4:39 
GeneralRe: Why the world hates Hungarian notation? Pin
Stuart Rubin5-Apr-12 4:49
MemberStuart Rubin5-Apr-12 4:49 
GeneralRe: Why the world hates Hungarian notation? Pin
BinaryReason5-Apr-12 4:56
MemberBinaryReason5-Apr-12 4:56 
QuestionRe: Why the world hates Hungarian notation? Pin
MSBassSinger5-Apr-12 5:17
professionalMSBassSinger5-Apr-12 5:17 
GeneralRe: Why the world hates Hungarian notation? Pin
SeattleC++5-Apr-12 6:00
MemberSeattleC++5-Apr-12 6:00 
GeneralRe: Why the world hates Hungarian notation? Pin
Member 37636085-Apr-12 6:58
MemberMember 37636085-Apr-12 6:58 
GeneralRe: Why the world hates Hungarian notation? - Data Dictionary Pin
Toyist5-Apr-12 7:02
MemberToyist5-Apr-12 7:02 
GeneralRe: Why the world hates Hungarian notation? Pin
Mark Johnston (SSCGP)5-Apr-12 7:30
MemberMark Johnston (SSCGP)5-Apr-12 7:30 
GeneralRe: Why the world hates Hungarian notation? Pin
we785-Apr-12 7:56
Memberwe785-Apr-12 7:56 
GeneralRe: Why the world hates Hungarian notation? Pin
jschell5-Apr-12 9:15
Memberjschell5-Apr-12 9:15 
GeneralRe: Why the world hates Hungarian notation? Pin
Ed Hastings5-Apr-12 9:36
MemberEd Hastings5-Apr-12 9:36 
AnswerRe: Why the world hates Hungarian notation? Pin
RiskFactor5-Apr-12 11:32
MemberRiskFactor5-Apr-12 11:32 
GeneralRe: Why the world hates Hungarian notation? Pin
Gerry Schmitz6-Apr-12 14:37
mveGerry Schmitz6-Apr-12 14:37 
GeneralRe: Why the world hates Hungarian notation? Pin
john morrison leon9-Apr-12 4:06
Memberjohn morrison leon9-Apr-12 4:06 
GeneralRe: Why the world hates Hungarian notation? Pin
Stefan SeelandOld30-Apr-12 1:25
MemberStefan SeelandOld30-Apr-12 1:25 
GeneralRe: Why the world hates Hungarian notation? Pin
Eytukan2-May-12 21:44
MemberEytukan2-May-12 21:44 
JokeThis girl came up to me today ... PinPopular
Nagy Vilmos4-Apr-12 3:19
professionalNagy Vilmos4-Apr-12 3:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Do you take a development machine with you on holidays?
A laptop, a mini PC, a tablet that allows you to remote to a Virtual Desktop. There are options.
  Results   657 votes