CamelCase
Image by Nigel Swales on Flickr
Software programming does neat things with language, in this case, mixing capital letters.
Which do you think is easier to read, arrsomebigcollectionofdata or arrSomeBigCollectionOfData? If you read software code long enough, you will notice uppercase and lowercase letters are everywhere. What gives?
It’s not a secret code, exactly, and there’s no mysterious list of when to use capital letters and when not. Instead, it’s an example of how software programmers take a technical problem — in this case, how to make code readable — and find a fun way to describe the solution.
The use of capitals and lowercase letters is called CamelCase with the capital letters as the humps in the camel. It’s also been called BumpyCaps and HumpBack and a few other words. The most boring is the technical term, medial capitals. For some reason, CamelCase has stuck despite many cases where there are far more capital letters used than humps in a camel.
There’s also lower CamelCase which begins with a lowercase letter and upper CamelCase which begins with a capital letter.
The rules for how to use CamelCase are set by whoever decides the overall programming standards for a project. Sometimes those standards are defined by the creators of the language used. But mostly the rules for CamelCase tend to be lower CamelCase for variable names and upper CamelCase for functions, methods, and other blocks of code.
In some cases, lower CamelCase also is used to indicate functions and methods that can be used anywhere in the code (public) and upper CamelCase for code blocks that can only be used within another code block (private).
Regardless of the rules, using lower and uppercase letters helps programmers understand the role a name has within their software code.
Learn More
CamelCase
https://en.wikipedia.org/wiki/Camel_case
Naming Conventions (Programming)
https://en.wikipedia.org/wiki/Naming_convention_(programming)
CamelCase Generator
https://capitalizemytitle.com/camel-case/
What is the point of the lower camel case variable casing convention (thisVariable, for example)?
Snake Case
https://en.wikipedia.org/wiki/Snake_case
Tall Man Lettering
https://en.wikipedia.org/wiki/Tall_Man_lettering
Title Case
Also In The October 2017 Issue

Building and creating your tools with the Minecraft toolbox helps you survive the game.

Sensors give robots the senses humans have.

30+ ideas for all age holiday gifts, from books to apps to board games to VR and more.

There might be a reason that too-real robot and video game character creeps you out.

You computer mouse cursor finally gets a cat to chase it.

Create turtles with Python, the programming language.

This programming language uses colors instead of text and punctuation to add and perform other tasks.

Use micro:bit to water your plants!

Knowing how passwords are cracked can help you create better passwords.

Studying satellite photographs shows a lot about what happens in the world.

There are a number of strategies teachers (plus parents and students) can take to learn programming.

Pigpen ciphers uses alien-like symbols to hide secret messages.

This project uses conductive thread to create a glove to activates your phone.

The repl.it website and React are one way to create mobile apps.

Software programming does neat things with language, in this case, mixing capital letters.

This Scratch game has lots of ways you can customize the game play. No cats were harmed in the making of this article either.

Links from the bottom of all the October 2017 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about computer science, software programming, and technology for October 2017.