3 ms·
To a degree perhaps. However, Node.js has a programming style that's highly reminiscent of code you would see in a browser. For instance, responding to a cone
by CitizenKane 16y ago
To a degree perhaps. However, Node.js has a programming style that's highly reminiscent of code you would see in a browser. For instance, responding to a conenct event on a socket
socket.addListener("connect", function () {
socket.write("hello\r\n");
});
is really not that different from responding to a click event on an element in jQuery.
$("#my-element").click(function() {
alert('Element Clicked!');
});
I'm not saying that it will instantly make everyone a server side programmer, but it definitely makes the barrier to entry quite a bit lower.
- fauigerzigerk 16y agoI don't see how that is much different, syntactically, from: public void service(ServletRequest req, ServletResponse res) throws IOException { res.getWriter().println("hello"); } Yes, JavaScript is dynamically typed so you don't have to type the types.