Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Foundations Objects, Classes, and Variables Simple Variables

Ricardo Acuna
Ricardo Acuna
9,014 Points

Is class Burguer really camelCase?

I was under the impression that this was => camelCase and this was => PascalCase

1 Answer

There is no strict definition on whether camel case should start with or without an upper cased letter. Different communities and companies tend to define this themselves, but I think it is most common for camel case to start with a lower cased letter (camelCase), as PascalCase is strictly defined to start with an upper cased letter.

I find in a working environment, people tend to use these terms interchangeably. If someone referred to a Ruby class as camel case, I would know that they meant pascal case, because that is the syntax style.