Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Anything but Hungarian notation!
Welcome to devRant btw hope you'll enjoy your stay -
But Wikipedia says arrays start with arr.
Hungarian notation certainly looks interesting but it's not easy to follow and implement if you are not used to it. -
httpeed568yFor me (and I recall when the ide / editor didn't colour syntax or make it easy to find the type) variations of Hungarian notation were useful - but with today's tools, for me it's clutter.
Still find myself starting to name variables in that way sometimes! -
boottape1008yDo it if it's there standard but it sounds like the type of place you wouldn't wanna spend too long at anyways. So take all the good experience you can and move on when you've built up enough of if
-
For me Hungarian Notation just turns the code more difficult to read. The variable name should be enough and the compiler knows the type anyway.
Thanks for the welcoming ! -
boottape1008y@lucasgonzalez you'll probably not get many disagreements with that here. There was a guy who worked in my place before I did and he use to use it as it was common in the languages he wrote previously. It drove my colleagues mad and they tried countless times to move him away from it, but it never worked
-
When forced to do GUI programming it helps, that way lblFirstName (Label First Name) is known to be different from txtFirstName (textbox First Name). But once inside of the business or database logic I don't have sFirstName.
As an aside if you have a dyslexic teammate Hungarian really screws with them. That's also why I use CamelCase. -
I remember coding when Hungarian notation was a thing and we had company wide standards forcing its use. I can't imagine ever using it again... it just pollutes code and makes things less readable to me.
I'm a junior dev and my seniors insist to use Hungarian Notation. Looking the code I found a variable called oAllProjects... This is a fucking array.
undefined
hungarian notation