Live data from Hacker News

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

github.com

71–80 of 112 posts

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

#71
post #70
post #25

I think this, along with its sibling Turbolinks [1], is filling a much needed gap with regards to complexity in these javascript frameworks. Myself, I've been playing with intercoolerjs [2] for a few weeks, and it is quite refreshing. These are great libraries for small full-stack teams who do not want to get lost in the complexity of front-end stuff like react, webpack, etc. [1] - https://github.com/turbolinks/turbo…

its not "cool" anymore, but I always thought knockout was pretty simple, worked well, and fulfilled a lot of this use-case. I built a couple knockout based apps that worked phenomenally well across lots of platforms, and were pretty lightweight dependency wise. Organization and convention was paramount to keep consistent since it doesn't enforce a bunch of best practices like a larger framework would; but, looks like…

I double that knockout is amazing (and never targeted "true" frontend space, like routing), but from my point of view, it is targeted towards more "rich" applications.

So while it is possible to use it the same way as Turbolinks (or React), it is kind of between, which makes it is harder to justify.

However, it works perfect. So, if you read this, and you have it in your project, don't rush to replace with shiny new stuff.

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

#72

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.

Rails is an open source web development framework that excels in productivity by coming with smart defaults for people to use to get up and running quickly. Rails already integrates with webpack, and you can certainly implement your own integrations to further advance things - and you can turn around and make this a gem for others to use, or contribute it to core if its something more fundamental. But for the most pa…

React and vue are great for creating interactive widgets (no flash anymore). it doesnt’t mean necessarily to change how we code :)

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

#73

So... knockout?

I said the same thing and noticed you had said it 4 hours earlier. Whatever happened to knockout? If it failed, why?

It's not dead, it still receives updates (as recent as 4 days ago). There's an overhaul in progress called TKO (https://github.com/knockout/tko) that is supposed to bring Knockout up to date with ES6, a better plugin API, and other nice stuff.

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

#74
post #22

Earlier quoted context omitted.

At some point, you have to stop following that advice or you end up on Lotus Notes and Tivoli. Which is entirely relevant to this discussion.

And I bet you the people who were consultants for those implementations never got fired because they chose them.

Yep, I'd fire the CTO.

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

#75
post #71
post #70

Earlier quoted context omitted.

its not "cool" anymore, but I always thought knockout was pretty simple, worked well, and fulfilled a lot of this use-case. I built a couple knockout based apps that worked phenomenally well across lots of platforms, and were pretty lightweight dependency wise. Organization and convention was paramount to keep consistent since it doesn't enforce a bunch of best practices like a larger framework would; but, looks like…

I double that knockout is amazing (and never targeted "true" frontend space, like routing), but from my point of view, it is targeted towards more "rich" applications. So while it is possible to use it the same way as Turbolinks (or React), it is kind of between, which makes it is harder to justify. However, it works perfect. So, if you read this, and you have it in your project, don't rush to replace with shiny new…

> and never targeted "true" frontend space, like routing

that was why it didn't catch on as much as it could have, in my opinion. The thing is, it was SO easy to rig routing together quickly yourself; I ended up doing dom event based routing for a lot of stuff. If you actually took the time to throw a real/reusable hash or pushstate based router on it would be pretty damn good....

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

#76
post #62

Earlier quoted context omitted.

Frontend stuff doesn't have to be complex. The idea behind React is very simple and it's really something every front end dev should know. You need to understand the why of DOM diffing. It is not complicated. If a frontend dev doesn't want to learn that then they will be out of a job in a decade. It transfers, too. React, Vue, Elm, Reagent, etc, they are all doing this, because it is good, and none of them in isolati…

Front-end stuff doesn't have to be complex, but it is. For example, a lot of places using React think they need Redux too. And React-router. And many other components. React itself is quite simple. But the architectures that developers build are often incredibly complex. This was the case with jQuery, Angular, and things that came before. I see two main problems in software development, especially on the front-end. F…

[deleted]

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

#77
post #74

Earlier quoted context omitted.

And I bet you the people who were consultants for those implementations never got fired because they chose them.

Yep, I'd fire the CTO.

Not if the CTO said he chose Lotus Notes and Tivoli because they were in Gartner's magic quadrant based on the long gone consultants he hired.

Yes, I know it's a circular argument, but that's how corporate America works.

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

#78
post #62

Earlier quoted context omitted.

Frontend stuff doesn't have to be complex. The idea behind React is very simple and it's really something every front end dev should know. You need to understand the why of DOM diffing. It is not complicated. If a frontend dev doesn't want to learn that then they will be out of a job in a decade. It transfers, too. React, Vue, Elm, Reagent, etc, they are all doing this, because it is good, and none of them in isolati…

Front-end stuff doesn't have to be complex, but it is. For example, a lot of places using React think they need Redux too. And React-router. And many other components. React itself is quite simple. But the architectures that developers build are often incredibly complex. This was the case with jQuery, Angular, and things that came before. I see two main problems in software development, especially on the front-end. F…

[deleted]

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

#79
post #60
post #56

Earlier quoted context omitted.

The central argument of your post appears to be based solely on personal opinion because you provided no evidence to back it up. meesterdude provided evidence that runs counter to that opinion. I'm not sure what you're complaining about.

He's parroting what they said. "rewritten"... more like revamped.

You're not really responding to my argument, which I'll state again: Your argument and your opinion are indistinguishable because you haven't supported your argument with anything other than opinion.

"rewritten"... more like revamped.

You still haven't supported this. Why do you believe it was "revamped" instead of "rewritten"? What are you basing this on?

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

#80
post #25

I think this, along with its sibling Turbolinks [1], is filling a much needed gap with regards to complexity in these javascript frameworks. Myself, I've been playing with intercoolerjs [2] for a few weeks, and it is quite refreshing. These are great libraries for small full-stack teams who do not want to get lost in the complexity of front-end stuff like react, webpack, etc. [1] - https://github.com/turbolinks/turbo…

Thank you for the kind words about intercooler.js. :) If you are interested in some reading on the theory behind it, I recommend these two blog posts that explain how HTML and REST/HATEOAS hang together better than Javascript with JSON: http://intercoolerjs.org/2016/01/18/rescuing-rest.html http://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.ht...

I am really liking intercoolerjs and noticing that Stimulus will not work with IE11 which I need to support.

What is the browser support for intercoolerjs?

Post reply on HN