Reputation
1,746
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 10
Newest
 javascript
Impact
~27k people reached

Jan
25
comment in dynamic language like javascript how do you know what the argument is?
Documentation, sample code, examining source of the function. Those are the options in Javascript. There is no strict method in Javascript to determine a function argument type because Javascript does not use types for declaring arguments.
Jan
10
awarded  javascript
Jan
9
comment Should I be returning promises from any function that uses them?
@Basilevs - I added another paragraph to the end of my answer.
Jan
9
revised Should I be returning promises from any function that uses them?
added 618 characters in body
Jan
9
comment Should I be returning promises from any function that uses them?
@Basilevs - well, that's just the way it is with async. Any operation that uses an async API immediately changes the entire operation to be async. There's nothing you can do about that - that's just the way it is.
Jan
9
answered Should I be returning promises from any function that uses them?
Dec
28
comment Why does Node not support several event loops in one Process?
Any time multiple threads all have access to the same data, the developer must protect ALL shared data with mutexes. This adds significant overhead, significant complexity and great difficultly to fully test, thus often leads to hidden bugs. Any design that avoids as much of that complexity is generally a good thing and that is node.js out of the box. It avoids that completely. If you want to use multiple threads or processes, you can do that yourself with something like the clustering module or by starting up child processes and then YOU coordinate access to whatever data must be shared.
Dec
13
answered Is it possible to not have a zero-indexed array with javascript?
Dec
9
revised Will ECMAScript add classes to JavaScript? What does this mean?
added 21 characters in body
Dec
9
comment Will ECMAScript add classes to JavaScript? What does this mean?
@BasileStarynkevitch - Code example added.
Dec
9
revised Will ECMAScript add classes to JavaScript? What does this mean?
added 150 characters in body
Dec
8
awarded  Enlightened
Dec
8
awarded  Nice Answer
Dec
5
answered Will ECMAScript add classes to JavaScript? What does this mean?
Oct
21
comment Is this the preferred way to do inheritance in JavaScript?
Yes, that is the typical method of inheritance in Javascript. It's not the only way to do things, but this is a common method.
Sep
21
comment Is there a reason not to use HTML5 local storage for content
Don't forget about making SEO work. And, do you really need to reinvent browser caching?
Sep
2
awarded  Yearling
Jun
11
comment JS Async: . Can I forget callbacks all together and replace with promises and/or generators
Promises will be a lot, lot cleaner than plain callbacks. But, keep in mind that promises work via callbacks too, they just offer you a lot more functionality and structure for use with those callbacks.
Jun
10
comment What is the best way to go about storing application options: file system or db?
File system vs. database Google search. Lots of articles to read. The answer is that "it depends" upon a lot of factors that are unique to your particular application.
May
23
answered In javascript, should object properties be declared on top of the function?