Eventually Consistent
blog / projects / about /
All tags

Posts tagged with "Node"

    A Method for Objected Oriented Node
    One frustrating part of learning how to use node is implementing JavaScript style OOP. I don't mean that Node's JavaScript engine is different than a browsers with respect to objects. What I'm talking about is understanding how to use objects in an asynchronous environment.
    HTTP Handler Function
    A good jumping-off-point when writing your node server is to use a handler function to route all HTTP requests to their proper functions. If you write functions that are specific to a url such as providing a web service that reads from a database and then writes back XML or JSON you can use an if-else block or a switch block to route the request to the function.
© 2026 • Eventually Consistent 🔬
Press Esc or click anywhere to close