Live data from Hacker News

Stimulus: A modest JavaScript framework for the HTML you already have

stimulusjs.org

61–65 of 65 posts

Re: Stimulus: A modest JavaScript framework for the HTML you already have

#61
post #35

This has a lot of similarities to intercooler.js http://intercoolerjs.org/ which I really enjoy when I don't need a full SPA type experience. Can anyone with experience of Stimulus suggest why I'd pick it over intercooler?

If you already use the rails ecosystem and the mental models associated with it, this is a library which will likely feel intuitive to you and fit neatly with the rest.

The ability to think effortlessly about code has value.

Re: Stimulus: A modest JavaScript framework for the HTML you already have

#62
First of all this isnt just another JS framework, The Framework is designed to work better with Rails, it is crafty in terms of how the DSL is designed. DHH is definitely the master of Designing DSL's, look at Rails and Activerecord. This too is excellent DSL design. So no its not for JS People, JS has react and what not. This is mostly geared towards Rails people.

Re: Stimulus: A modest JavaScript framework for the HTML you already have

#64
post #46

Earlier quoted context omitted.

Well, I just opened the script in firefox and checked the network tab in the dev console. It's 26KB gzip and 31KB after decompression. Which, IMO isn't too bad, I keep my pages under 100KB. If I throw out a picture for an older project, I can easily get back those 30KB to stay under 100KB.

>It's 26KB gzip and 31KB after decompression. Yeah so no. There is no way gzip could only compress 16% of utf8 data.

As another comment mentions, there is a gzip'd variant available that comes under 6 KB.

Re: Stimulus: A modest JavaScript framework for the HTML you already have

#65

I don't mean to knock the effort they've put in here, but this looks like all of the hand-rolled "frameworks" I saw my friends in the agency / consulting space made when they said angular 1 was "too heavy"... right down to the 'data-controller' attribute binding that everyone seemed to independently come up with. Is there anything actually novel here? These types of things always seemed to run into composition issues…

data- comes out of HTML5 but jQuery was one of the first libraries to touch it.

It’s likely a significant fraction of people who jumped to the same solutions had some prior exposure to jquery.

Post reply on HN