All Questions
Tagged with node.js javascript
143 questions
52
votes
8
answers
14k
views
What are the drawbacks of making a multi-threaded JavaScript runtime implementation? [closed]
I've been working on a multi-threaded JavaScript runtime implementation for the past week. I have a proof of concept made in C++ using JavaScriptCore and boost.
The architecture is simple: when the ...
37
votes
4
answers
8k
views
The importance of Design Patterns with Javascript, NodeJs et al
With Javascript appearing to be the ubiquitous programming language of the web over the next few years, new frameworks popping up every five minutes and event driven programming taking a lead both ...
35
votes
2
answers
32k
views
Methods of separating front and back-end with full stack javascript?
Suppose I have a front-end which is mostly a single-page application written using angular, grunt, and bower. And suppose I have a backend, which is mostly just a REST API sitting on top of an ORM, ...
29
votes
4
answers
18k
views
What determines which Javascript functions are blocking vs non-blocking?
I have been doing web-based Javascript (vanilla JS, jQuery, Backbone, etc.) for a few years now, and recently I've been doing some work with Node.js. It took me a while to get the hang of "non-...
24
votes
3
answers
8k
views
Novice to node.js, what is the advantage gained using callbacks over events?
I am a novice JavaScripter and have no real knowledge of what goes on inside the V8 engine.
Having said that, I am really enjoying my early forays into the node.js environment but I find that I am ...
18
votes
3
answers
30k
views
Certifications for Javascript developers? [closed]
I'm looking for a solid and but fast paced entry in field of javascript development.
The following topics come to my mind:
Javascript advanced concepts, OOP
jQuery, jQuery-UI, jQuery-Mobile
backbone....
16
votes
4
answers
48k
views
Is it bad design to internally call API endpoints from within the API instance?
For context, I am running a REST API built with Node.js. Because of callbacks and some complex DB calls, I have a chain of functions that are async but also unique, so it's tough to reduce redundancy. ...
15
votes
3
answers
4k
views
How to write manageable code with functional programming?
I just started with functional programming (with JavaScript and Node.js) and from the look of things it looks as if the code I am writing would grow to be one hell of a code base to manage, when ...
14
votes
1
answer
6k
views
How can NodeJS be "non-blocking"?
I'm learning NodeJS and just wanted to clarify something. In several introductory tutorials and books so far, very early on they've described Node's "non-blocking" architecture - or rather that it's ...
12
votes
3
answers
14k
views
How can I prevent a user from editing my code in their browser?
Description
I'm designing a Node.JS application (more like a full website). The app will send five JavaScript files and will have <script> tags linking them together.
Question
How can I prevent ...
11
votes
1
answer
5k
views
Is it bad practice to require the same module in multiple files in Javascript?
Let’s say I have three files, all of which import a fairly large module. But I’ve divided them because they have different functions. Now each of the JavaScript files needs an initial statement like
...
10
votes
4
answers
19k
views
Is node.js a good fit for background processing?
I'm slowly learning node.js and have a small project I want to start. The project will have a lot of background processes (downloading data from external sites, parsing CSV files, etc.).
A big "win" ...
10
votes
1
answer
16k
views
Node.js Or servlets? [closed]
I have heard a lot and read about the Javascript server side language i.e Node.js, and saw many comparisons in favor of Node.
I don't understand what makes it better or faster, or how it even relates ...
9
votes
2
answers
1k
views
Respectable design pattern for making node modules flexible/testable?
I am looking to get some input from some more experienced testers than what I am. :)
I am trying to make my node modules testable, allowing for dependency spying/stubbing/mocking without the need to ...
9
votes
1
answer
7k
views
Node.js app private modules. Where to put them?
The situation would be:
I develop 2 projects in my Node.js development environment, P1 and P2.
P1 required the development of two simple modules, mod1 and mod2, which are stored in P1/lib. Each one ...