Live data from Hacker News

Riot – A React-like, 2.5K user interface library

muut.com

81–90 of 222 posts

Re: Riot – A React-like, 2.5K user interface library

#81
post #77

Where is the list of controls? I would be really interested to see their grid layout control implementation. This is something web is struggling with.

I've been funding CSS Grid implementation work for 2+ years so that eventually no one needs a framework for grid layout. Go play with it in Chrome and help squash bugs :)

Re: Riot – A React-like, 2.5K user interface library

#83
post #71

I'm suspicious of libraries who showcase their size as a reason to go with them. Its the motion of the ocean in the library that matters.

Size is multiple things:

1. simplicity

2. maintanability

3. API surface and learning curve

Riot also about minimalism, especially in syntax.

Less proprietary stuff (and keystrokes).

Re: Riot – A React-like, 2.5K user interface library

#87
After using ember's router and react-router, I can't do client side routing with a router like this (or backbone's, or anything that is sinatra like). The layout management part of nested routes is crucial and way too hard to do with something as minimal as this.

That said, great work on this library! I'm impressed with how much functionality you guys have in such a small package.

Re: Riot – A React-like, 2.5K user interface library

#88

Hm. How does this compare to Mithril JS ( http://lhorie.github.io/mithril/ )? I just looked at the doc and read this thread (at 61 comments). Same: * virtual dom * has its own tag syntax * Mithril has MSX, but also supports regular JS data structure with m("tag", {attr:val, onclick: func, [more tags, "text"]} * router Different: * Where Mithril allows you to build and transform resulting template structure before vir…

Definitely some similarities exist like you listed. Riot offers following to the (massive) client-side table: 1. Custom tags (with unscary HTML + JS syntax) 2. Minimalism (both size and API surface) 3. Performance (minimizing DOM operations with virtual DOM) The 3rd item is not battle-tested / benchmarked yet and there is probably room for improvements.

Thank you for your comment.

Me thinks Mithril is fairly minimal, too, but this point can't be completely objective. If API allows to do things I find complicated to do myself, then I happily accept a little bloat here and there.

I will be looking at Riot custom tags and how they might help (or hinder) creating components out of functionality. There is currently an interesting discussion on the Mithril mailing list about these things. Also it's what attracted me to Angular long time back (and what drove me away from it, as well).

Re: Riot – A React-like, 2.5K user interface library

#89
post #71

I'm suspicious of libraries who showcase their size as a reason to go with them. Its the motion of the ocean in the library that matters.

Size is multiple things: 1. simplicity 2. maintanability 3. API surface and learning curve Riot also about minimalism , especially in syntax. Less proprietary stuff (and keystrokes).

In my experience with Backbone, another relatively small js library, the fact that the library is smaller and "does less for you" also means that you end up in one of these scenarios: you need to figure out how to solve a lot of things that other, larger libraries handle out of the box; or, you need to glue libraries together that provide those solutions; or, you have a bunch of prior experience with the library in question, have solved those problems before, and can bring that expertise (and often that code) to each new project.

These all bring with them their own issues of simplicity (tying libraries together?), maintainability (what happens when I realize my library/framework additions are inadequate, and/or buggy?), and learning curve (instead of learning the API I am learning how to do things with a very minimal API).

To some degree, a small library doesn't solve these problems, it offloads them to you--which isn't necessarily a bad thing. It, like basically everything in software development, is about being aware of the tradeoffs and figuring out the best balance.

Re: Riot – A React-like, 2.5K user interface library

#90
post #77

Where is the list of controls? I would be really interested to see their grid layout control implementation. This is something web is struggling with.

Riot 2.0 is a "core" library and such controls can be build on top of it. No controls exist, since this is all very new.

I would say that a grid would be a great showcase, especially with custom column renderers and/or editors. That's a real stress test for any GUI system, update code, templating etc.
Post reply on HN