The Trade-Offs of Designing in Html and Rails
Folks at 37Signals have strong opinions on how to design and build products for the Web. Between ShapeUp, design philosophy, and Rails approaches to frontend, monolith vs services, and infrastructure, there are a number of conventions.
I don't like the personalities behind them, but the approaches are generally very sane for the audience they're articulated for.
The Basecamp way of ShapeUp, and the design philosophy, though, don't generalize very well, in my experience.I'm yet to see an organization successfully and happily using ShapeUp in a team bigger than 50 people. Get it? Rails (approach) doesn't scale? Hehe.
Designers Who Can Write Code Absolutely Rock
People who span across several areas of the work, generally, have a much stronger understanding of the overall goals, values, and motivations of the product. And as such, they're able to bring extreme clarity to the rest of the team. They're moving quickly. They have their own opinions about the product you're building. Designer + Engineer combo is not an exception from that rule.
In Zipline, I've been privileged to support not one, but three absolutely amazing designers-turned-frontend-engineers. With them, and with ShapeUp, early on, we've been able to iterate on our products very quickly, and with a very respectable level of clarity for everyone involved.
When I worked on my own company, Amplifr, and later in Evil Martians, I had the pleasure of working with Andrew Sitnik, who you might know by his work on Autoprefixer and PostCSS. He basically designed all of Amplifr in the early years, from scratch, and also built half of the UI. He thought through the whole product experience.
In Amplifr, we were not just building a standard-issue Rails application. We were not confined to the Rails "DHH-approved" stack. We've built out optimistic UI with CRDT over Logux backed by a Rails backend.
I do have to admit, teams that build with Rails are capable of building a lot, and doing so quickly. So while it might be very difficult to scale and grow such a team beyond certain threshold (more on this below), you can get very, very far with a small team.
Designers Who Can Code Are Also Rather Rare
When we've been recently looking to hire product design folks at Zipline, it became pretty clear that even in the 2022-2023 market, folks who can design and implement their designs in HTML are rather rare. Folks who can do that, and are also experienced in the Rails stack, are even more exceedingly rare.
The problem here is that once you set up a team where your designers are expected to write Rails views, and contribute or prototype controllers for features they're envisioning, that team will have a very hard time onboarding designers with any other experience profiles.
"Rails stack" (Rails views, Hotwire, Stimulus, designers write said views) is great early on, but the more you align with it, the harder it might be to scale the team:
- Rails frontend is not an "industry standard" for designers. They don't have the tooling that they're used to.
- If your team thinks and designs in code, they won't really like jumping into Figma and navigating your product designs in Figma once the team starts using it.
- Rails apps usually have a semblance of an implicit design system in their views and partials. Once you try to design in Figma, there will be a very well-meaning designer who starts tweaking the very primitives of your controls, and the design system brain split will be painful.
Designing in Code Limits Your Creativity
TipSticking with just one mental model limits the points of view you consider, limits your creativity in how you solve a problem.
The problem with designing and prototyping straight in HTML or Rails views is that it limits the level of polish and creativity that your team can apply to solving a problem.
Amplifr's team won't be able to build optimistic UIs with Rails primitives consistently, not at that time (Turbolink's idea of fragment reloading was shoving js
code in .slim
partials, good luck with that).
Think about the most beautiful and amazingly functional products you know of. They're likely not designed in code. Stripe's homepage and product documentation are likely not designed in HTML, despite Stripe using Rails heavily.
Admittedly, most Rails apps don't need to push design to the limit of what's possible with modern HTML and CSS. Depending on what audience is using your product, perhaps Rails frontend and Rails approach to design are totally fine! Most SaaS products out there just take content in, process it, perhaps sync in some more data from other systems, and present text content in different views and drilldowns. It's fine to use primitives that people already know and love, take an off the shelf design system and go for it. Twitter Bootstrap, Tailwind, Shopify Polaris, GitHub Primer, Stripe Elements.
But sometimes, you need to drop the constraints of the technology that you have today, and think about what a great solution to the problem looks like, and then think backwards from that — think about what technology you need to make that solution a reality. If you only have designers-who-html on the team, they likely won't be as great at that type of work.
The cost of lifting the product design process away from HTML
Designing a good product starts with the problem, and describes the why, what, and how of the solution. It's not just the visuals. Starting with what and why means thinking about the product and the people using it, and what success looks like to them, and articulating that thinking in a format that others can read and debate.
Designing and prototyping in HTML gives your team that shared language of the prototype. Not designing in HTML means that the design and product team need to find that language, and build that system and the process of how you talk about your product, design, and implementation. That's usually expensive. At the very least, that would mean using additional tools (Figma, Miro, you name it), having more channels for conversations (not just issues and PRs, now you have threads of comments on Figma, too), and the process will take more time, more discussion, more deliberation.
And the biggest cost of all is that you as a leader have to bring clarity to everyone, put them on the same page, make sure they have the same goals in mind for your features, your product, and your customers. And that's usually extremely difficult to achieve.
That's why many folks in the Rails ecosystem revert to the fat marker sketch, design-in-HTML approach. They know it works. They don't trust the other process that seems risky and wasteful. And so they stick with what they know. But quite often, it's the right approach for them.
For some products, you need to move quickly and be able to take the prototype, clean it up a little bit, handle the edge cases, and ship it as a new feature, all in just a few hours. For others, you need that space, you need more people, more opinions, more angles, and more time before you commit and build.