Keep Your Classes Clean Published 18 years, 3 months past See, that’s why presentational class names are such a bad idea. Keep Your Classes Clean was published on Wednesday, February 23rd, 2005. It was assigned to the (X)HTML, CSS, Humor, and Standards categories. There have been eleven replies.
I definitely agree with the principle, but I think I should point out that Simple Green is so named not so just for the green color of the basic product, but for the environmentally friendly nature of the products.
Also, not to be picky, but isn’t the classname on the image “border”?
Haha… we use that in Bio!
I love ’em.
Ah, Mr. Kawakami… indeed the class name is
border. You have looked beyond the surface and discovered the truth buried within the truth. Well done, Grasshopper.
Hah hah Eric got busted!
I have seen this type of stuff several times before. It is also very common for products like chewing-gum and mints to do this.
Thanks for the chuckle.
A sobering point indeed. Presentational class names are clearly a lose-lose situation and are best avoided like the plague.
Why, even if Sunshine Makers decides to embrace the color motif, it’s still doomed from the start. Simple Green … Curious (Yellow) … Purple Rain … Soylent Green (!) … I mean would you just look at that list – it’s a total catastrophe!
(“Dada marches on …”)
Some of us have enough trouble getting our sites to look half as good as this one … even with all the colors turned off (Firefox preference) — and now we have to worry about keeping our classes clean? Oh, well … I suppose I should think of it as ‘job-security’ n’est-ce pas?.
Thanks for the excellent advice: your site always keeps me honest, even if it’s only with myself. Also, I love the Gatekeeper function, though I wonder if it has produced any snippy comments. (Umm … orange?)
hah…can’t believe i missed this the first time around…
ļāūņš ļāčīš » Blog Archive » Around the web in 80 days #6
[…] ā pēc iespējas lētāk uz sava tēkrekla dabūt govi. Saites, kuras sāk novecot. Eric’s Archived […]
ara pehlivanian » Blog Archive » Sidebar Semantic Shenanigans
[…] o find all kinds of auxiliary information. Now we’re all aware of the importance of keeping our classes clean, meaning that they shouldn’t contain presen […]