Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tipiirai
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
721.
▲
by
tipiirai
13y ago
Riot does templating, routing and separation of concerns rather beatutifully, I would say. Those are the things most frameworks are build for. What do you see missing? The amount of Todo MVC code in Riot is actually smaller than in Backbone
722.
▲
by
tipiirai
13y ago
I'm sure people study the source code of the frameworks a lot these days. Most of the things are related to structuring code in an understandable way. MVC and MVC are design patterns and do not necessarily need a framework.
723.
▲
by
tipiirai
13y ago
Wrong. Frameworks were build to add structure to the application by taking advantage of the MVC or MVP pattern. By having all the view/model/presenter code stuffed together is the problem and is definitely hard to maintain.
724.
▲
by
tipiirai
13y ago
Yeah. I guess it's more of an library, but it promotes the use of MVP design pattern / way of coding – and can thus be interpreted as a framework. I might change it to library if it makes more sense.
725.
▲
by
tipiirai
13y ago
Thanks for the feedback. Maybe I can use some of that on my next update. These implementation details and issues are rather easy to address. I would not write my own event library from scratch if I can take advantage of jQuery. Can you elab
726.
▲
by
tipiirai
13y ago
I'll do that on my next post. I just wanted to push out the general idea first.
727.
▲
by
tipiirai
13y ago
Yeah. The idea is to support variable substitution (string interpolation) only. The loops are supposed to be done on the Presentation layer.
728.
▲
by
tipiirai
13y ago
Thanks. I'll add that in on the next update.
729.
▲
by
tipiirai
13y ago
Rails is much more than just 4 methods.
730.
▲
by
tipiirai
13y ago
> 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
731.
▲
by
tipiirai
13y ago
The actual loop with 200, 500, 2000 and 5000 iterations is here: https://github.com/moot/riotjs/blob/master/compare/speed/ind... The $.each has only 4 iterations and has no effect on the stats.
732.
▲
by
tipiirai
13y ago
It's compiling once before the loop.
733.
▲
by
tipiirai
13y ago
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
734.
▲
by
tipiirai
13y ago
Thanks. jQuery dependency is intentional since the library promotes the use of jQuery on the presenter layer.
735.
▲
Riot.js – A 1kb client-side MVP framework
(moot.it)
210 points
by
tipiirai
13y ago
|
136 comments
736.
▲
by
tipiirai
13y ago
Thanks. My statement is now confirmed.
737.
▲
by
tipiirai
13y ago
Seems that Angular is slow by default
738.
▲
by
tipiirai
13y ago
Disgusting tendency allover the world.
739.
▲
by
tipiirai
13y ago
Okay. I admit that we needed to bang our heads with the custom communication library which we use in place of socket.io. But our solution is more than 10 times smaller!! There is a crazy amount of clutter in socket.io, believe me. And it di
740.
▲
by
tipiirai
13y ago
Thanks. One thing to note that I didn't write my own framework. I just found my own way of structuring things. Apart from a custom event library there is virtually no framework code.
741.
▲
by
tipiirai
13y ago
Looks good. I can definitely forgive :) Looks like we have similar goals: > Ractive.js is designed to have as few surprises as possible – no mysterious $scope.$apply()
742.
▲
by
tipiirai
13y ago
When something happens on the topic object (it is expanded, collapsed or someone replies to it) an event is emitted. Here those events are caught and I can do my thing on that moment. It's similar to jQuery custom events, except that w
743.
▲
by
tipiirai
13y ago
This example from the docs seems quite heavy: <button data-bind="click: function(data, event) { myFunction('param1', 'param2', data, event) }"> Feels a bit strange to define functions on the HTML code.
744.
▲
by
tipiirai
13y ago
I do most of the work + 2 other contributors.
745.
▲
by
tipiirai
13y ago
The whole client will be open sourced later once it's properly packaged. It takes time. I'll first release the syntax highlight package, which supports 50+ languages and is super small. Then I'll first release the json-rpc co
746.
▲
by
tipiirai
13y ago
Looks decent. With a quick look the the binding system looks simpler than in Angular and the docs are not blowing up. They openly love jQuery. Much closer to my taste. I picked up the 3 frameworks on my blog entry because they seemed to be
747.
▲
Why Angular, Ember, or Backbone don't work for us.
(moot.it)
31 points
by
tipiirai
13y ago
|
19 comments
748.
▲
Moot v1.7: Forum analytics and image uploads
(moot.it)
3 points
by
tipiirai
13y ago
|
0 comments
749.
▲
Moot Manifesto – The current state of online discussion must change
(moot.it)
4 points
by
tipiirai
13y ago
|
0 comments
750.
▲
by
tipiirai
13y ago
Yes. You can have commenting threads based on the page. The value on the href attribute takes a form https\://moot.it/i/[forumname]/[an_unique_path] You'll get the [forumname] from the setup ( https://
More ›