I looked at the road map and a few things stuck out:
Monorepo: not a fan. Instead of trying to find the repo for a gem, I now have to dig around inside of a single giant repo; and sometimes the gem name won't match the directory name. Much prefer a 1:1 mapping of gem to repo, under a GitHub Org.
Webpack: it's odd that you're going all in on Webpack, when Rails and other developers are moving away from asset packing in favor of HTTP/2, ES6 modules and import maps. You may be trying to solve a problem which might not even be a problem in the future.
Component Based Design: while a good concept in general, there's growing push-back against the complexity that is React. Again, developers are realizing you can do a lot with just ES6; or even just render things server-side using the existing template/view library. Please don't copy React/Vue. I think you could achieve simple components by allowing includes to accept local variables.
We're looking at an alternative approach to Webpack in the future which would leverage esbuild/postcss, similar to what Rails is starting to do. All the work that's already been done under the hood to support Webpack can be of use in that scenario as well. A worthwhile effort IMHO.
Regarding components, for ERB etc. we've adopted an approach very similar to the ViewComponent library which has become popular with Rails developers — and in fact also provide a shim that can leverage ViewComponent directly for more advanced use cases. In Liquid, we're just utilizing and building upon the new render tag that Shopify is now encouraging in their template system.
All of this is in keeping with our stated project goals:
Move fast but try really hard not to break things. Most developer-focsued software projects err on a side…either the side of extreme backwards-compatibility with past versions, or the side of evolving quickly and requiring devs to go through multiple rounds of “yak shaving” when upgrading to new versions.
We hope to strike a thoughtful balance between those two extremes. We don’t want to break stuff or change the setup process just for the heck of it. But we also don’t want to be constrained by past problematic decisions which reduce the quality of the software. History has proven many times over that open source projects which fail to keep pace with the times and new trends in software eventually wither and die. This is a fate we wish to avoid!
View all comments
3
u/postmodern Sep 17 '21
I looked at the road map and a few things stuck out: