Live data from Hacker News

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

moot.it

101–110 of 147 posts

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

#101

Earlier quoted context omitted.

The component.io ecosystem encourages using only functionality that you actually need instead of bundling a heavyweight library like _ or $. It would be great to use a small component (like riot.js say) with other nimble components.

why use riot when you could just pull in a router, an event emitter, and a model?

Exactly :).

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

#102
post #56

1kb, plus jQuery's 50. This must be a joke...

Indeed. The whole reason for the existence of all these frameworks riot is being compared is to to simplify development.

Angular has no dependancies. Knockout also has no dependancies, so it's actually 13k > than riot.

For anyone who really serious about going minimal, here are some alternatives to jquery to build on.

9.7kb http://zeptojs.com/ 3.4kb https://github.com/rpflorence/snack 5.0kb https://github.com/julienw/dollardom/ 10kb http://xuijs.com/ https://github.com/honza/140medley

What a riot!

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

#103

Earlier quoted context omitted.

Since I was used as proof of the effectiveness of "puffery", I went to find out what that English word means: "promotional statements and claims that express subjective rather than objective views, which no 'reasonable person' would take literally". Well, I don't claim to take all my decisions based on pure reasoning. Intuition has a lot to do with my technology choices, because it's built on all my prior experiences…

And sadly, with great pain, I rest my case. --- But hey, if you want to try out a hot new framework that Fits in A Tweet™, I've got something special for you. Announcing Revolution.js It's a mere fraction the size of Riot.js, and provides over 100 times the functionality. Despite the unbelievable size, all the building blocks are there: a template engine, router, event library and a strict MVP pattern to keep things…

Genius!

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

#104
I like this idea, you can in fact build a MVP framework without writing a 1kb library, assuming he's not counting the dependencies (jQuery), you can aswell use Hogan/Mustache/Underscore templates, a router libarary, an observer library and jQuery.

I just dislike the use of "new" in javascript...

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

#105
post #88

I apologize if I'm missing something, I'm not a data visualization expert, but what the heck is going on with that graph? http://content.screencast.com/users/sequoia.m/folders/Jing/m...

I think the size of the bar is actually ms/x so because Riot.js does more x's in the same period of time, the bar is shorter.

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

#107

While I'd usually prefer to be nice in the mornings ... starting off with those benchmarks got my goat. So. This sort of thing is a beautiful demonstration of marketing, big promises, and bombastic rhetoric in open source. But one of the best things about open source is that you don't have to take such claims at face value. If you actually look at the source, you'll find: https://github.com/moot/riotjs/blob/29ae687ca…

Since I was used as proof of the effectiveness of "puffery", I went to find out what that English word means: "promotional statements and claims that express subjective rather than objective views, which no 'reasonable person' would take literally". Well, I don't claim to take all my decisions based on pure reasoning. Intuition has a lot to do with my technology choices, because it's built on all my prior experiences…

[deleted]

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

#108

While I'd usually prefer to be nice in the mornings ... starting off with those benchmarks got my goat. So. This sort of thing is a beautiful demonstration of marketing, big promises, and bombastic rhetoric in open source. But one of the best things about open source is that you don't have to take such claims at face value. If you actually look at the source, you'll find: https://github.com/moot/riotjs/blob/29ae687ca…

Since I was used as proof of the effectiveness of "puffery", I went to find out what that English word means: "promotional statements and claims that express subjective rather than objective views, which no 'reasonable person' would take literally". Well, I don't claim to take all my decisions based on pure reasoning. Intuition has a lot to do with my technology choices, because it's built on all my prior experiences…

The problems with writing client side JavaScript on a big project have little to do with the m.o. of your framework, but they are heavily affected by the manageability of the code you produce.

Jeremy's point is that the framework is snake oil, and he is right. You will spend effectively just as much time ensuring your code is manageable without this framework as you will with it. It is mostly a wrapper around jQuery, and if you aren't the sort of JavaScript developer who can recreate this sort of wrapper in short order, you should strive to be (especially if you are taking on the task of authoring a large scale JavaScript application).

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

#109
post #88

I apologize if I'm missing something, I'm not a data visualization expert, but what the heck is going on with that graph? http://content.screencast.com/users/sequoia.m/folders/Jing/m...

The bars are relative to data in it's own category (eg. 200x), you're comparing apples to oranges.

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

#110
post #24

Precompilation renders template rendering speeds...moot. What a weird factor to use for choosing a template engine. Also there already is a popular unit test framework called riot.js

> Precompilation renders template rendering speeds. Not 100% sure what you mean but if you measure the time to render a HTML fragment 100 times the total time is 1 x pre-compilation + 100 x rendering. The pre-compilation has virtually no effect on the total time.

I think that was his point.
Post reply on HN