Discovered today I have a surprisingly strong opinion on

<div class="foo{{if cond " bar" " baz"}}">
<div class="foo {{if cond "bar" "baz"}}">

...fortunately I _think_ I'm the only one on the team with a _strong_ opinion, and I can express it well 😅

· · Web · 1 · 0 · 1

(I strongly prefer the second - the short version is that worrying about extra spaces in the DOM is optimizing for tidiness in the stuff we don’t see or care about, at the cost of tidiness in the stuff we do see and care about)

@cincodenada I was like "I don't see the diff- OH NO! EWWW!"
… strongly prefer the second as well, purely on aesthetic grounds 😆

Sign in to participate in the conversation

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!