Y
Hacker News
new
|
ask
|
show
|
jobs
by
fredley
5051 days ago
It may keep your HTML clean, but it makes your CSS messy!
2 comments
JCB_K
5051 days ago
That's why I said there's better ways of getting a MacBook into your webpage. But my point still stands, :before and :after are very powerful.
link
MatthewPhillips
5051 days ago
I'd much rather have clean, reusable HTML. CSS you can use preprocessors to abstract away the messiness.
link
lolsal
5051 days ago
Aren't you using templates and macros for HTML already?
link
Groxx
5051 days ago
Changing how the HTML macros expand likely ends up requiring CSS changes (in practice, though not necessarily in a theoretically-ideal code base). One change in two places, vs one change in one place.
link
MatthewPhillips
5051 days ago
No, I typically write entirely client side applications.
link
tobyjsullivan
5051 days ago
Any reading recommendations for someone who isn't?
link