#standards


@Media 2007 — Time to Learn More!

@media 2007 - San Francisco

I was for­tu­nate enough to be spon­sored by M.com/Monster World­wide to attend @media 2007 up here in SF.

@media: For for­ward-think­ing web design and devel­op­ment pro­fes­sion­als, @media, one of the world’s fore­most and well received web design con­fer­ences, comes to the West Coast for the first time this May 24th and 25th.

The unique pre­sen­ta­tions from lead­ing indus­try experts will inspire and edu­cate, cov­er­ing a mul­ti­tude of aspects of best prac­tice web design, dis­cussing top­ics such as user-inter­face design, acces­si­bil­i­ty, seman­tic markup, CSS, JavaScript, and ajax.

Woohoo! I can’t wait to get my badge! haha =)

CSS Naming Convention for Classes and IDs?

Well, just re-read­ing some of the cur­rent book­marks in my bag. To note:

I am try­ing to clean up and make things more effi­cient here at work. One goal would be to have a base CSS that will serve as a start­ing point for our Pro­duc­ers and Fron­tend peeps. Anoth­er goal would prob­a­bly be a con­ven­tion on how to use it and/or cre­ate new class­es and IDs.

One of the things that keeps com­ing up late­ly would be the nam­ing con­ven­tion of class­es and IDs. I used to imple­ment this kind of for­mat “class_name”. Then, only to switch to “class-name” in ear­ly ’06. Fast-for­ward to a cou­ple of months into the year dur­ing a project, I came to find out that if you are refer­ring to either a class­name or an ID (i.e. getEle­ment­ById, or some­thing like that) that the value’s hyphen get stripped out. Can some­one con­firm this phe­nom­e­na and/or myth? That is, for exam­ple, doing “id-name” would be imple­ment­ed like so:

document.getElementById("idname")

With that how­ev­er, would it be more read­able using a camel­Cased name? Although against Tantek’s step #4 in terms of sav­ing the user(s) poten­tial headaches. But would there be prob­lems if there was a stan­dard with­in one’s orga­ni­za­tion? That is, class­es and IDs writ­ten as a vari­able, i.e. some­thing­LikeThis; no hyphens and no under­score.

I look for­ward to hear­ing your end­less wis­dom on this sub­ject sirs and madams. Thanks in advance.