back

by kimi·3y ago·view on hn ↗
This is major - potentially killing off a thousand tons of boilerplate.

Not sure if it is too late, because Elixir's LiveView seem to have gotten important because it works around the same issue.

But it's time to push the wooden stake through the heart of the SPA (and the phone app too, but that's for another day).

1 comments
You can already kill the boilerplate with code generation and metaprogramming. Once you have done that, you figure out why that is not always a good idea and how to best deal with the exceptions that your particular use case brings to the table.
I'm thinking more of all the cruft that goes to handle state on the client and keep it synced to the server in your React app. Redux and the gazillions of other packages which names sound like warthogs having breakfast.
The same argument applies. I think Redux is a pointless indirection, but you can use metaprogramming to make it more palatable, at the cost of another indirection.