Live data from Hacker News

Riot.js – A 1kb client-side MVP framework

moot.it

11–20 of 147 posts

Re: Riot.js – A 1kb client-side MVP framework

#12
The current crop of frameworks do feel like they're trying to abstract away the browser a little bit. They have the feel of something like JSF1 (java), they get the job done but the abstraction is so thick that it's difficult to integrate things like jquery without jumping through a few hoops. A lighter framework that achieves the same things without all the fuss would be very welcome. The danger is that the abstraction is too thin and you end up writing half a framework yourself to plug the gaps but maybe riotjs has managed to get closer to the sweet spot.

Re: Riot.js – A 1kb client-side MVP framework

#14
post #9

key feature of many frameworks is that they break if you don't follow them carefully, limiting damage from 10x developer's hacked together code. does riot provide similar functionality?

Developing with Riot is completely different from other frameworks. It's just 3 functions and after 1.0 the API will be hardened. It's more of a design pattern than a framework. The application developer is the biggest culprit for breaking things.

Re: Riot.js – A 1kb client-side MVP framework

#16
post #6

I love the refreshingly minimal approach, although jQuery dependency ruins some of the excitement, but still, great work guys!

Thanks. jQuery dependency is intentional since the library promotes the use of jQuery on the presenter layer.

I really like this outlook.

Most developers don't bother about the presentation layer and they think that jQuery is a pain but most front-end designer and developers rely on it.

Great step.

Re: Riot.js – A 1kb client-side MVP framework

#17
post #7

How can someone just beat Resig's or Jashkenas' code performance "that easily"?

https://github.com/moot/riotjs/blob/master/riot.js#L12-L21

By only supporting simple single property accesses. All that this can do is print values from an object — no loops, conditionals, filters, methods, or anything else — like the others support. Think string interpolation, not templates.

Post reply on HN