Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
by recursive on Tuesday April 23, 2024 @02:00PM
(#40134994)
I've never had a case where I didn't know the reason or mechanism by which an element would be hidden. In my code, I use the `hidden` property. In that case it simplifies from
to
It's not quite as succint as your jquery, but you also could have written this.
Is it less imperative? I mean I guess it doesn't have an explicit loop, but I don't really see why that's good or bad.
[ Parent
| on HN ]
Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
by The_Colonel on Tuesday April 23, 2024 @02:29PM
(#40135412)
> I've never had a case where I didn't know the reason or mechanism by which an element would be hidden.
Unfortunately, I usually don't keep the whole codebase in my head (including libraries), so I often don't know the reason.
The more general point is that I don't want to have to know, because the mechanism of how it is hidden is not what I care about.
> It's not quite as succint as your jquery, but you also could have written this.
Yes, it's more than three times as long as the jQuery variant.