The Blogging Programmer's Style Guide: Does Anyone Hyphenate "Open Source" Anymore?
Hyphenation is always a big question, and the fact that it can vary for the same word causes significant confusion. This article will give you some tips and common usages.
Join the DZone community and get the full member experience.Join For Free
read the introduction to "the blogging programmer's style guide" for some background on this series.
should i hyphenate "open source" and "command line" when they are used as compound adjectives?
the answer should be an easy "yes" if you look at the english rules for compound adjectives , but out in the real world (the internet) these rules get broken, and with other terms in the past, we have ended up embracing the contravention, which then becomes the convention.
all the cool kids are doing it
let's take a look at how "open source" and "command line" are being used in various publications and relevant websites:
if you get the same results that i'm getting, you'll see that the first five articles from techcrunch don't use the hyphen in "open source" even when it's used as a compound adjective. dzone and infoworld also have a majority of posts that drop the hyphen in compound adjective usage.
let's look at "command line":
it looks like infoworld is pretty consistent in keeping the hyphen for "command line" during compound adjective usage. techcrunch and dzone have mostly abandoned it though.
despite this evident shift in usage, wikipedia still promotes the usage of hyphens for these terms.
even though it seems like using hyphens is the "correct" practice, it also seems like most bloggers and publications in the programming space are abandoning it. but does that mean that we should start dropping the hyphen just because "everybody else is doing it?"
yes… yes we should… that's how language evolves.
anybody remember the "if all your friends jumped off a bridge" saying?
randall munroe, xkcd
i love that comic because it easily crushes that argument.
proper usage: the verdict
from my own experience, and several searches that i just showed you, i think it's clear that writers aren't following the compound adjective rules for "command line" and "open source", and i predict that dropping the hyphen will become the norm.
it's not wrong to say "open-source software" or "open source software." both are acceptable usages. however, i think that the more common usage is without the hyphen.
if you're writing something academic or formal, or if you prefer to adhere to strict english grammar rules :
"open-source" and "command-line" when used as a compound adjective. no hyphen when used as nouns.
if you want to adhere to the common usage in the community:
"open source" and "command line" when used as a noun or a compound adjective.
i also thought about calling this post "the death of the open source hyphen," but that would have showed the reader where i was going with this too quickly.
Opinions expressed by DZone contributors are their own.