Our codebase has some unusual corners where we build html by hand in javascript code. And the bits where we make async requests to other servers are all hand-crafted too. I also want to bring more dynamic features, like auto-updating notification counts, inline forms etc without having to write a whole bunch of javascript - or worse, head down the massive-js-library path.
Recently a better approach has appeared which seems suited to our needs, called hotwire. In essence it's an opinionated framework built by DHH that sends html over the wire (i.e. html is rendered server-side, like everything else that we have) and most of what we need comes built-in without having to write custom javascript.
The first steps are getting it installed and running, and then maybe tackle something straightforward (like reworking the inbox to use turbo frames) or more useful (updating the mailbox notification count using turbo streams). Then we can work through our existing javascript stuff and refactor it.
Our codebase has some unusual corners where we build html by hand in javascript code. And the bits where we make async requests to other servers are all hand-crafted too. I also want to bring more dynamic features, like auto-updating notification counts, inline forms etc without having to write a whole bunch of javascript - or worse, head down the massive-js-library path.
Recently a better approach has appeared which seems suited to our needs, called hotwire. In essence it's an opinionated framework built by DHH that sends html over the wire (i.e. html is rendered server-side, like everything else that we have) and most of what we need comes built-in without having to write custom javascript.
The first steps are getting it installed and running, and then maybe tackle something straightforward (like reworking the inbox to use turbo frames) or more useful (updating the mailbox notification count using turbo streams). Then we can work through our existing javascript stuff and refactor it.