Geek Humor

Found a funny bit of CSS today. I think my geekness is in full force today, because this had me rolling.

b {
font-weight : bold;
}

Then I came across this line of code:

Const int ONEPLUSTWO = 1+2

I can’t believe people actually do things like this.

3 thoughts on “Geek Humor

  1. If you like those, there is an entire site devoted to awful code. It’s named, appropriately enough, The Daily WTF:

    http://thedailywtf.com/

    Here’s the one from friday…see if you can guess what they are trying to do:

    If (Mid(CStr(cppObject.GetValue()), 1, 1) = “-”) Then …

  2. Ugh, I’ve done that CSS with the bold before. I can’t remember exactly why, but it seems like earlier versions of Netscape would actually NOT bold the B tag (or italicize the I tag) if there were already styles indicated for parent tags, like P. It was weird, and wouldn’t surprise me if some of the sites I manage still have those artifacts…