Re:Show HN: My new JavaScript MVC framework
by timmywil on Tuesday March 18, 2014 @10:26AM
(#7422082)
The tests don't make sense. jQuery is not an MVC framework and should not be tested as if it were. It's worth noting that both Backbone and Angular use some version of jQuery (lite or otherwise), so comparing that to your own way of using jQuery doesn't correlate. I could use jQuery to append elements in a way that was much faster than and just as short as what you've done in your test. Also, did you know you can append image elements with events using document.appendChild? It must be a security issue! But seriously, don't even include it in the tests. It is a JavaScript library that serves a lower-level purpose than MVC frameworks.
[ Parent
| on HN ]
Re:Show HN: My new JavaScript MVC framework
by JetSpiegel on Tuesday March 18, 2014 @11:16AM
(#7422420)
It has reached the point where Javascript Framework coders don't know Javascript.
Looks like Javascript IS the Assembly of the Web.
I consider myself a JS-person, but if I were honest, I speak jQuery/backbone, not pure Javascript.
Re:Show HN: My new JavaScript MVC framework
by nawitus on Tuesday March 18, 2014 @12:47PM
(#7423041)
But DOM is separate from JavaScript.
Re:Show HN: My new JavaScript MVC framework
by hmsimha on Tuesday March 18, 2014 @06:00PM
(#7425331)
DOM is separate from Ecmascript, but is actually one of the 3 components of Javascript (along with Ecmascript and the BOM). This is at least according to Professional Javascript for Web Developers (you can see it on 'page 3' in the Amazon preview).
Re:Show HN: My new JavaScript MVC framework
by nawitus on Wednesday March 19, 2014 @02:06PM
(#7430576)
The sources I've read (Douglas Crockford or Wikipedia) clearly state that DOM is separate from JavaScript.
Re:Show HN: My new JavaScript MVC framework
by JetSpiegel on Tuesday March 18, 2014 @01:06PM
(#7423231)
Only theoretically.
Javascript is a way to manipulate the DOM, no matter whan those nutters who run it on servers say.
Re:Show HN: My new JavaScript MVC framework
by nawitus on Tuesday March 18, 2014 @01:57PM
(#7423684)
Nope, it's the truth. You can have JavaScript without the DOM in a Node.js or a CouchDB environment, for example.
Re:Show HN: My new JavaScript MVC framework
by hmsimha on Tuesday March 18, 2014 @06:15PM
(#7425427)
I would say that what node.js runs is ecmascript with it's own API that differs from the DOM. It's called javascript for convenience, but then what separates javascript from ecmascript?
Re:Show HN: My new JavaScript MVC framework
by swang on Wednesday March 19, 2014 @01:07AM
(#7426932)
Nothing. It is only different in name. Oracle owns the actual copyright on JavaScript via Sun. ECMAscript was used so the ECMA would not have to worry about this.
Re:Show HN: My new JavaScript MVC framework
by hmsimha on Wednesday March 19, 2014 @02:39AM
(#7427135)
I guess this is a point of contention. Javascript is considered by many to be an implementation of ECMAscript that also provides additional features (the additional features, according to the book I cited, being the DOM and BOM).