Live data from Hacker News

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

github.com

11–20 of 112 posts

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

#11

For context, I'm in no way, shape, or form a modern front end maestro. I'm good with ES6, Jquery, Handlebars, and Bootstrap. I've done a little with the Angular 2. From that perspective.... What does this buy me over the other more popular frameworks? What are the chances that this won't be abandoned if it doesn't gain traction? It's also easier to recruit developers if you say your stack is built on the more popular…

(I don't like adding to a response once it's been commented on)

My other rule of thumb when choosing a framework is what would happen if things go south, will I be asked by management why I chose X? The old "no one ever got fired for buying IBM". With a pedigree like BaseCamp has, I could justify it by saying it came from them. Just like I justified using Hashicorp's Nomad, even though no one had ever heard of it before I introduced it.

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

#12
It is becoming more and more apparent that with every piece of technology that is not really turn on/turn off you have to justify the investment.I get that this is an opinionated piece of software and solves basecamp's kind of issues but I do not see it being widely adopted.

That said I wish people behind RoR would actually work on better integration with things like React and Vue.

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

#13
post #5

For context, I'm in no way, shape, or form a modern front end maestro. I'm good with ES6, Jquery, Handlebars, and Bootstrap. I've done a little with the Angular 2. From that perspective.... What does this buy me over the other more popular frameworks? What are the chances that this won't be abandoned if it doesn't gain traction? It's also easier to recruit developers if you say your stack is built on the more popular…

I believe this section attempts to answer that question: https://github.com/stimulusjs/stimulus/blob/master/ORIGIN.md...

It bothers me a bit that it feels intentionally dismissive of (or oblivious to) the current state-of-the-art of JavaScript frameworks.

None of the criticism mentioned feel like an honest reflection of my last two years working with React (4 years total). Universal rendering is mainstream, there are plenty of options for vastly simplifying initial setup and overall complexity (eg Next.js). From what I understand, similar is true of Vue and Ember.

I can genuinely see the value in tech like Stimulus and Pjax as a way of augmenting an existing traditionally-coded app without needing a total rewrite. But this document seems to be arguing for its place in the world of 2-3 years ago, rather than the present-day.

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

#14

It is becoming more and more apparent that with every piece of technology that is not really turn on/turn off you have to justify the investment.I get that this is an opinionated piece of software and solves basecamp's kind of issues but I do not see it being widely adopted. That said I wish people behind RoR would actually work on better integration with things like React and Vue.

https://github.com/rails/webpacker#integrations

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

#15
post #7
post #5

Earlier quoted context omitted.

I believe this section attempts to answer that question: https://github.com/stimulusjs/stimulus/blob/master/ORIGIN.md...

> Stimulus also differs on the question of state. Most frameworks have ways of maintaining state within JavaScript objects, and then render HTML based on that state. Stimulus is the exact opposite. State is stored in the HTML, so that controllers can be discarded between page changes, but still reinitialize as they were when the cached HTML appears again. It really is a remarkably different paradigm. One that I’m sur…

I think what StimulusJS is supposed to bring to the table is that it watches the DOM for you, so you don't have to manage the integration or setup of the interactivity/app framework, providing a very easy way to integrate StimulusJS with your current Turbolinks setup.

That being said, I do have to worry about memory leaks.

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

#16

For context, I'm in no way, shape, or form a modern front end maestro. I'm good with ES6, Jquery, Handlebars, and Bootstrap. I've done a little with the Angular 2. From that perspective.... What does this buy me over the other more popular frameworks? What are the chances that this won't be abandoned if it doesn't gain traction? It's also easier to recruit developers if you say your stack is built on the more popular…

What does ES6, Jquery, Handlebars, Bootstrap and Angular 2 buy you ?

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

#18
To anyone wondering why they should care about Stimulus, I offer this TLDR, straight from DHH himself:

"Above all, it’s a toolkit for small teams who want to compete on fidelity and reach with much larger teams using more laborious, mainstream approaches."

Give it a whirl, I'm sure you'll find it delightful. But if you're looking for the next Big Thing™, I'm afraid you might be sorely disappointed.

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

#20
post #7

Earlier quoted context omitted.

> Stimulus also differs on the question of state. Most frameworks have ways of maintaining state within JavaScript objects, and then render HTML based on that state. Stimulus is the exact opposite. State is stored in the HTML, so that controllers can be discarded between page changes, but still reinitialize as they were when the cached HTML appears again. It really is a remarkably different paradigm. One that I’m sur…

I think what StimulusJS is supposed to bring to the table is that it watches the DOM for you, so you don't have to manage the integration or setup of the interactivity/app framework , providing a very easy way to integrate StimulusJS with your current Turbolinks setup. That being said, I do have to worry about memory leaks.

It watches the DOM for you, since that's where state is, but every other thing watches the JS for you, because that's where the state is. I don't see the advantage.
Post reply on HN