Timeline for Local user registration
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2013 at 18:47 | comment | added | aaaaaaaaaaaa |
@LokiAstari I can't know for sure where the holes in your knowledge is. But discussing my answer bore fruit, and you gained a new piece of knowledge. You can read more about scope and closures on a load of sites, you might as well Google it as me. The most relevant thing for me to add is probably that Node has an extra scope layer, a module's root scope is local to that module, but there is also a global scope that you can access through the global object, or by simply not declaring a variable with var .
|
|
Dec 14, 2013 at 18:17 | comment | added | Loki Astari | No I was note. But that is the kind of detailed explanation that would be good inside a code review. | |
Dec 13, 2013 at 22:46 | comment | added | aaaaaaaaaaaa | @LokiAstari Clashes? You do know that you can make inner functions that only take up namespace in the local scope? | |
Dec 13, 2013 at 21:28 | comment | added | Loki Astari | I agree with the indentation (totally bad (in my version)). But using named functions I know is a bad idea as it causes clashes. Best practice is to use unamed functions. | |
Dec 13, 2013 at 21:01 | history | answered | aaaaaaaaaaaa | CC BY-SA 3.0 |