Tagged Questions
4
votes
1answer
576 views
Where is the memory leak in this scraper?
This is a scraper written in coffee-script for nodeJS. It is run in an interval (set to 5 seconds here to dramtically show the leak). Somewhere this code leaks memory. I already tried nulling a few ...
3
votes
2answers
130 views
Fibonacci using cache
This is my simple Fibonacci implementation in CoffeeScript. What do you think? Using cache (fibResults), it's very very fast.
...
2
votes
0answers
92 views
node.js Review Core class of a Javascript framework for SPA's
A few years ago I started building a tiny (~300 SLOC) JavaScript framework for scalable and maintainable Single-Page-Applications written in CoffeeScript:
https://github.com/flosse/scaleApp and ...
1
vote
1answer
39 views
Remove nodejs/browser specific code in library
I'm the maintainer of the following library on github: https://github.com/edi9999/docxtemplater/blob/master/coffee/docxgen.coffee
I want to maintain a library that works on node and in the browser, ...
1
vote
0answers
286 views
Handling multiple Mongodb connections in Node.js (using Mongolia)
I have a situation where I have multiple objects that each needs to connect to a different mongodb uri.
I am currently testing this using mongolia but the concept should be the same if I were to use ...
0
votes
2answers
80 views
Promises and chained calls
I've realized JS callback hell and I started looking into Promises libraries.
After reading some articles I decided to start with BluebirdJS. I didn't realise how to properly use them yet, because ...
0
votes
1answer
337 views
Express, blade with connect-assets
I have this CoffeeScript code running here (with TZM-Blade) and would like to have your opinion on how to better optimize it.
...