CSS – Can It Be Considered a DSL?

cssdslprogramming-languages

According to Wikipedia, CSS is a style sheet language. However, it's pretty much the only such type of language in use (at least from a web developer's perspective).

When trying to categorize CSS as a language or technology (e.g. for a résumé), would it be acceptable to simply call it a domain-specific language? If you don't think it can, why not?

Best Answer

To answer the question of whether CSS is a domain specific language, according to Martin Fowler, it is. In fact he lists it among examples of DSLs.

You do have to understand that talk about DSLs has been going on for a while now, and Wikipedia's more narrow definition has come along much later in the discussion. Understand that Wikipedia is edited by peers who may or may not have a full grasp of what has been discussed so far. It's definition covers the most common uses for DSLs, and why you may want to create one of your own. However, it does not have a complete article. The fact that it omits markup languages completely is an omission. Perhaps the smart doctorates came along later and redrew the lines--but from the beginning markup languages were included with DSLs in early conversations.

Classifying CSS on a Resume

While CSS is a DSL, you don't want to list it under a section of DSLs on your resume. The most common way to reference CSS is to lump it with HTML.

Related Topic