Hacker News new | ask | show | jobs
by ape4 2939 days ago
Its ugly but for global js variables I use Hungarian notation - eg `var gstrHomeUrl`.
1 comments

You really shouldn't have global variables in the first place, and this misses the point entirely; the type of something isn't what's important, the semantic meaning of it is. The type can be mentally inferred from that.

Hungarian notation 'solves' a problem here that doesn't exist in the first place.