Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×
Programming

Journal sceptre1067's Journal: Hungarian Notation

I have this love/hate relationship with it...

I think is is usefull for constants, globals, and gui components (e.g. mVar is global, kVar is constant, btnVar is a abutton, tbVar some sort of text box thought to be clear I prefer txbxVar... etc.)

But it just drives me buggy when somebody wants all datatypes, arrays, database types, xml types, etc. done up in Hungarian...

So I have to type nodVar as opposed to varNode for an xml node... but for my poor brain typing out the word node, so I know what it is doesn't seem that bad versus prepending with nod... and on it goes....

do I really need to know something is a string, integer, double, or float??? I'm a big boy, I'll go look at the declarations.

O.k. I know some languages allow the creation of vars on the fly (Perl comes to mind, or old time lotus script with $var for a string.) But with C style languages, one can go look at the declaration...

sigh...

This discussion has been archived. No new comments can be posted.

Hungarian Notation

Comments Filter:

If God had not given us sticky tape, it would have been necessary to invent it.

Working...