When it comes to efficiently conveying information we often use shortened forms of words or phrases. Stay with me. Sometimes we need to name an object without using spaces. As an example, I might create a VM that is my “production web server number 3 in my Auckland datacentre”. That name is rather long. Since VMs are often stored in folders with the same name there could be a nasty folder name. Naming that VM in a shorter form would make a lot of sense, maybe prodweb03akl. Now I have a short folder name with no white space. So far I’m sure you are all on the same page and wondering what my point is.
It’s time for a digression to the trigger for this post. Last week, I was at VMworld USA in San Francisco. One evening I was in a whiskey bar talking to Shawn Cannon. I know Shawn from seeing his twitter handle @rolltidega. I had always wondered about his twitter handle as it made no sense to me. It turns out Shawn is a fan of the University of Alabama athletics and is living in Georgia. The chant for Alabama’s Crimson Tide athletics team is “roll tide”. So Shawn’s twitter handle is actually “roll tide Georgia”. To make it readable, I would write it as @RollTideGA. At least for me this makes the words stand out far more than @rolltidega. This is also why my twitter handle is @DemitasseNZ. It conveys my company name and location. This use of capitals at the start of each word is called CamelCase since there are humps. It is widely used by software developers for naming functions and variables. Anywhere that you run together multiple words you can use CamelCase. Just capitalize the first letter of each word. This would make my web server ProdWeb03AKL, again a little more readable than the all lower case form. It is amazing that a small change can make a cryptic name much easier to understand.
Some CamelCase purists will also tell you not to capitalize the first letter of the first word. This is Microsoft’s preferred style for writing code. Personally I do capitalize because I’m usually naming an object (or person when it’s a Twitter handle). Whatever form you use CamelCase is a great way to improve understandability of run together words.
© 2015, Alastair. All rights reserved.