3 ms·
I blame the early Windows team by mistaking what Simonyi meant with Hungarian notation by misunderstanding what 'type' means. Which is why Office uses his notat
by sriramk 14y ago
I blame the early Windows team by mistaking what Simonyi meant with Hungarian notation by misunderstanding what 'type' means. Which is why Office uses his notation in a much cleaner fashion.
- dagw 14y agoYea it's a shame that Hungarian notation has gotten such a bad rap. Done right i find it occasionally useful. Done the way most windows programmers have been taught is an abomination.
- oh_sigh 14y agoCan you give an example(or a link to an article discussing this)? I've never had the displeasure of working with the Windows API(though I often shook my head when I saw code for it)
- sriramk 14y agoBasically he intended 'type' as not 'datatype' as in 'dwSomething' (for double word) but the purpose of the variable. For example, if you're using an integer variable to store the length of some entity, you would name it something like 'lenSomething' as opposed to 'dwSomething'. Storing the type of the variable makes little sense as in most cases it is only a quick grep away.
- flogic 14y agoIn the example you used, "context" seems to be a more appropriate word than "type".
- akldfgj 14y ago/bites tongue, and provides links: http://en.wikipedia.org/wiki/Hungarian_notation#Systems_vs._Apps_Hungarian http://en.wikipedia.org/wiki/Hungarian_notation#Systems_vs._... https://www.google.com/search?q=hungarian+notation https://www.google.com/search?q=hungarian+notation
- sriramk 14y agoThat Wikipedia page does such a better job of describing it than I did.
- tedunangst 14y agohttp://www.joelonsoftware.com/articles/Wrong.html http://www.joelonsoftware.com/articles/Wrong.html You have to read a bit, hungarian notation doesn't really show up until maybe 4/5 of the way through.