|
|
|
|
|
by EGreg
4728 days ago
|
|
I completely agree. I just wanted to put out one file from our framework and get some early feedback. But Q.getter for example is just that easy. Try this: 1) Include Q.js 2) Take any function that gets stuff from any web server and calls one or more callbacks, let's say function X 3) Do this: X = Q.getter(X) Now use your function :)))) See how it improves efficiency? It caches the result, it prevents multiple requests to the same thing, etc. Next you can tell it what to use for the cache, by another parameter to Q.getter. And finally you can hook up socket.io to update the cache on a push! |
|