3 ms·
I think the fundamental objection fogus has is that the language does not support the programming model. For example, I can program object-orientedly in C, but
by scott_s 16y ago
I think the fundamental objection fogus has is that the language does not support the programming model. For example, I can program object-orientedly in C, but that language does not help me do it. I have to do much of the work myself. So you can program in JavaScript in an event-based way using Node.js, but JavaScript itself does not help you much in doing so. It requires that you do most of the work yourself - work that is mechanical, and basically requires that you be a human compiler.
Disclaimer: I don't program in JavaScript or Node.js. So I'm talking from conceptual understanding, not experience.
- DTrejo 16y agoIt requires that you do most of the work yourself - work that is mechanical, and basically requires that you be a human compiler. It would be a good idea to write some JavaScript before you make statements like these with so much conviction.
- scott_s 16y agoFair enough, but the examples I've seen look like continuation passing style (http://en.wikipedia.org/wiki/Continuation-passing_style http://en.wikipedia.org/wiki/Continuation-passing_style), which is something we know how to abstract behind language syntax and semantics. In what way am I wrong?
- dionidium 16y agoProgramming in an "event-based way" is a huge part of writing traditional JavaScript in the browser. You're handling user events, Ajax responses, the page load itself. And JavaScript's first-class functions and closures are extremely well-suited to the task.
- scott_s 16y agoAh, yes, you are correct. Then consider for the sake of discussion that I said "asynchronous."