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
-
Not me, but I guess it'd make sense and could probably help reduce confusion in many places. Well written code usually make it pretty clear what type a variable has though. As for me, I usually use TypeScript, so it kind of eliminates the need.
-
@MadMadMadMrMim Strictly speaking, yes the subset of examples I provided could be classified as camel case.
But they are also examples of Hungarian notation. -
recfab313yI think Hungarian notation *can* be useful, if you encode the purpose of a variable in its name instead of the type.
But in that case, I’m not sure it qualifies as Hungarian notation anymore.
The typical form for Hungarian notation though, is useless. Your compiler/IDE can give you that information, so it just ends up being line noise.
Who is using Hungarian notation for js?
question