All Questions
4 questions
0
votes
1
answer
544
views
Class definitions in static getter methods
[Node.js / CommonJS]
I'm creating a single GitHub repo for my tool which has a Core, Control, Server, and Client library. It's unlikely that all of them will be used at the same time.
I'd like my ...
1
vote
1
answer
208
views
Returning functions within Javascript objects
After coming across Douglas Crockford's views on class-free OOP, and doing away with new and this in Javascript I tried defining an object with its own variable and function, and returning it in a ...
0
votes
1
answer
315
views
When to use "is a" or "has a"? [closed]
In my node.js application, I have a queue class which has push and pop methods and a data property. I have an Event class which handles an event and pushes it on to the queue.
If I think object ...
1
vote
4
answers
2k
views
Call the database every time, or create an object in memory, and if so, how and how often to update?
I'm creating an app in javascript/nodejs and using neo4j as database.
Let's say I have an entity User in my database. It has a bunch of properties, like boxes_collected and places_visited, which keep ...