Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Hungarian Notation

sceptre1067 (197404) writes | more than 8 years ago

Programming 0

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...

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...

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...