Hacker News new | ask | show | jobs
by hinkley 2291 days ago
What I found on several consecutive projects was that less the HTML generation resembles the final HTML, the harder it is for people to keep the CSS selectors wired up correctly. Getting text into the page as fast as possible at the cost of layout issues is a sucker's bet.

You can't ship until it looks good, and the longer features are in-flight the worse management feels about the team's abilities.

1 comments

A utility-first compile-time CSS framework (eg Tailwind) should be a perfect fit for this scenario, on multiple levels
Two of the projects I'm thinking of used Sass or Less. The problem is on figuring out why you have black text on a black background because your CSS selectors no longer match the DOM structure, when the DOM structure is split up and/or not even HTML-like anymore.

You don't want situations where senior staff have to intervene on what should be a straightforward issue. It gums up the works.