All Questions
Tagged with namespace javascript
6 questions
0
votes
3
answers
650
views
Using the symbol ⎋ to denote any "escape" in Javascript, CSS, HTML etc
I know that:
Computer keyboards have an Escape Key
The symbol for the Escape Key is U+238B Broken Circle with Northwest Arrow (⎋)
and I also know that:
HTML5 & CSS3 both have escape characters
...
4
votes
2
answers
1k
views
How can I avoid using global variables in simple Javascript SPA?
To learn Javascript I am building a simple Single-Page Application. It is a basic slideshow app that needs only to process some basic settings and execute some behaviors. The basic structure of my ...
6
votes
2
answers
3k
views
Nested classes via a getter (to emulate namespacing)
So, we all know that ES6's introduced syntax is definitely sugar over what we've been doing, previously. That being said, we still don't have namespaces (which would be nice...)
The problem that I'm ...
3
votes
1
answer
189
views
How to tell that a Javascript code already needs AMD (RequireJS, …)?
At some point code is complicated less if you introduce a new abstract than if you continue as it was.
Some trigger should fire in a head of a programmer. Like, I was coding fine, but now I've added ...
2
votes
2
answers
905
views
With AMD style modules in JavaScript is there any benefit to namespaces?
Coming from C++ originally and seeing lots of Java programmers doing the same we brought namespaces to JavaScript. See Google's closure library as an example where they have a main namespace, goog and ...
6
votes
3
answers
318
views
How should modules access data outside their scope? [closed]
I run into this same problem quite often. First, I create a namespace and then add modules to this namespace. Then issue I always run into is how best to initialize the application? Naturally, each ...