All Questions
Tagged with coffeescript node.js
10 questions
1
vote
1
answer
165
views
Operating on a list of files using recursion
I'm starting just now with CoffeeScript and I found out that I can't solve problems like looping and recursives with just one line. I would like to improve the code that I just wrote using built-in ...
2
votes
0
answers
383
views
RESTful API parsing DBF data HSET in Redis
I have this working code, but would like your review:
sync.coffe
...
2
votes
1
answer
716
views
NodeJS conditional request before the real request
In my code I have to login a user with username and password. But if the user sends his e-mail instead of his username, I have to resolve it with another request.
This is what the code looks like:
<...
1
vote
1
answer
672
views
Generating Passwords with a Secure PRNG
What's the best way to approach generating a password using a secure prng? In Python, I could simply use os.urandom. Any suggestions on this?
...
1
vote
2
answers
920
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 ...
1
vote
1
answer
100
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, ...
4
votes
0
answers
138
views
Core class of a JavaScript framework for Single-Page-Applications
A few years ago I started building a tiny (~300 SLOC) JavaScript framework for scalable and maintainable Single-Page-Applications written in CoffeeScript.
GitHub
www.scaleapp.org
It's inspired by ...
3
votes
2
answers
749
views
Fibonacci using cache
This is my simple Fibonacci implementation in CoffeeScript. What do you think? Using cache (fibResults), it's very very fast.
...
1
vote
1
answer
786
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.
...
3
votes
1
answer
910
views
Memory leak in a scraper [closed]
This is a scraper written in CoffeeScript 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 ...