News for hackers. Stuff that matters.
Re:“Variables” in CSS are harmful (2008) by dsego on Tuesday January 02, 2018 @06:03PM (#16056713)
> On the other hand, CSS style sheets are short. They are not much bigger than one editor window. Very few people (only professional designers, it seems) write style sheets longer than a hundred lines.

Even for 2008 this is just wrong. Very few people write any kind of CSS at all. But those who do surely write more.

Re:“Variables” in CSS are harmful (2008) by memco on Tuesday January 02, 2018 @08:39PM (#16057597)
I've been hand rolling CSS for pretty much every site I've built since 2001. I can't think of a single site with more than a few hundred lines. Most of the time I use a reset which adds more, but the actual site specific stuff has always been relatively small. Anecdata… mumble, mumble.

With respect to the premise of the article: I appreciate having variables because it allows more specificity about what a color or unit is supposed to mean in a given context, which I find valuable.

Re:“Variables” in CSS are harmful (2008) by dbbk on Wednesday January 03, 2018 @07:15AM (#16060348)
I'm quite baffled by this... I'm presuming this was in the context of the time when tables were used for layout everywhere
Re:“Variables” in CSS are harmful (2008) by bryanrasmussen on Wednesday January 03, 2018 @08:07AM (#16060639)
in my experience tables were hardly used anywhere for layout in 2008.
Re:“Variables” in CSS are harmful (2008) by zimpenfish on Wednesday January 03, 2018 @08:31AM (#16060776)
A single example, sure, but quite a high profile site: news.bbc.co.uk was using tables for layout in 2008 -

https://web.archive.org/web/20080306220511/http://news.bbc.c...

Re:“Variables” in CSS are harmful (2008) by bryanrasmussen on Wednesday January 03, 2018 @08:49AM (#16060905)
Ok maybe I was just lucky in where I worked.
Re:“Variables” in CSS are harmful (2008) by dbbk on Wednesday January 03, 2018 @10:20AM (#16061652)
Sadly we were where I worked :(