Re:New MVC client side JavaScript framework - Serenade.js
by wooptoo on Monday January 30, 2012 @03:34PM
(#3530539)
It baffles me how developers keep pushing for classes and classical inheritance in JS, since it's clearly not how it was meant to be used. Why not play to the language's strenghts instead?
[ Parent
| on HN ]
Re:New MVC client side JavaScript framework - Serenade.js
by jashkenas on Monday January 30, 2012 @04:58PM
(#3530821)
That's really not the case. If you know how to use JavaScript's prototypes -- the "prototype" property and constructor functions -- you'll find that you're using them in precisely the way that's best described as a class.
Developers are just calling a rose a rose.
Re:New MVC client side JavaScript framework - Serenade.js
by jnicklas on Tuesday January 31, 2012 @07:06AM
(#3532898)
It doesn't really push towards classes and classical inheritance, you're free to use any object with the framework that you with, which is not the case with most other frameworks that I've seen. It does use them internally, but that's only because I like it that way, I don't want to push that view onto users of this framework.