3 ms·
Could you elaborate on the node.js part? I thought it would be mainly used for certain aspects of a web app while the rest would be written in python or someth
by MisterWebz 16y ago
Could you elaborate on the node.js part? I thought it would be mainly used for certain aspects of a web app while the rest would be written in python or something similar. I'm not an experienced programmer so i really have no idea how this will turn out.
- po 16y agoNode.js is a lower level event framework written in Javascript and run inside of Google's V8 engine. You're probably familiar with a similar event driven javascript framework: jQuery. Node.js is like that but instead of clicks and mouseover you have streams and processes. You just attach code to these server events. From the node.js docs: Many objects in Node emit events: a TCP server emits an event each time there is a stream, a child process emits an event when it exits. All objects which emit events are instances of events.EventEmitter. You will probably have to write a JSON API for your web app anyway. The advantage of Javascript is that you can push logic down to the client as well. You send the data down, and have the Javascript code running on the client insert it into the DOM directly. There are already pretty complete JS web frameworks (google it) and you can start to see that the "web app" which produces html isn't really necessary in that model. It's all still a bit bleading edge. I don't recommend it for beginners quite yet, but keep it in mind. Your choice of which framework to learn isn't like "which house do I buy because I have to live in it forever." You can - and probably will - move soon. You're really investing in your ability to figure out web frameworks.