Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8517317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:39:52+00:00 2026-06-11T05:39:52+00:00

It seems to be the case at least here on StackOverflow that Hungarian notation

  • 0

It seems to be the case at least here on StackOverflow that Hungarian notation is most often considered to be a bad thing (though a minority are still in favour).

Now in the JavaScript world where I’ve been doing most of my coding for the past few months seems to have embraced a naming convention which is in essence very similar yet I haven’t seen anyone arguing against it, that is UpperCamelCase to name object constructors vs lowerCamelCase to name everything else.

So the differences seem only to be at the surface:

  • Hungarian notation uses prefixes whereas JavaScript uses casing.
  • Hungarian notation can distinguish many things whereas JavaScript can only distinguish “object constructor” and “not object constructor”.

Some people like to state that “systems Hungarian” is different from “applications Hungarian” where the former indicates types and the latter indicates things which types don’t cover. In this case “systems Hungarian” is usually still considered bad while “applications Hungarian” may be considered good.

The JavaScript camel casing convention seems more like systems Hungarian so wouldn’t gain any merit on that point.

The points people argue against Hungarian notation seem to still apply to JavaScript object constructors:

  • The compiler knows the type anyway.
  • The IDE is much better at this.
  • It’s too brittle when types change.
  • It makes code harder to read by cluttering it up.

So what is different about this JavaScript convention that makes it OK where the more general Hungarian notation is not OK?

Is it lack of good JavaScript IDE? Does its limited area of use make it not so bad? Is it due to dynamic languages not really having much in the way of types? Is it just not a problem since it can’t get overused?

(If this belongs on programmers.SE rather than SO please migrate.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:39:54+00:00Added an answer on June 11, 2026 at 5:39 am

    It is more like “applications Hungarian” after all.

    Javascript doesn’t know whether your function is a constructor or a plain function. And calling a constructor as if it was a plain function may lead to a quite odd undesired outcome (unless you’re using ES5 strict mode).

    I don’t see how IDE will help you there either. The only thing IDE could do is to prevent you from calling var x = new plainFunction(); and var y = Constructor();, which implies using the Hungarian notation first.

    I don’t see how using the notation makes the code harder to read either.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems rather common (around here, at least) for people to recommend SVN to
I want someone to help me, I have a case that seems very particular
So I have a Rails app (which in this case seems like it would
What are the rules? OTOH the simple case seems to imply the new type
I have a strange case with SWT and Button after using setEnabled() - seems
It seems both can be overloaded, but somebody said not..... What's the case?
Seems to be a problem that many people have, but all the answers I
Seems that This will be an easy question for you but this problem is
Seems I want to do the opposite of what most people ask for when
it seems that Flash was supposed to run in a sandbox in the browser.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.