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! While you're at it, check out some resources Treehouse students have shared here.
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

Alexander Davison
65,469 PointsSo many names in C# use uppercase letters as the first character!
I noticed that many names Jeremy is using starts with an uppercase letter. I'm not talking about the class names, since in most other languages that is conventional. I'm seeing Jeremy use uppercase letters as the first character in other names, for example field names and method names. Is this conventional, and why? In many other languages this isn't conventional.
Sorry if this question is stupid
2 Answers

andren
28,558 PointsYes, this is conventional in C#. It's mostly due to the fact that Microsoft (the makers of C#) recommends that naming convention in their official Capitalization Conventions guide.
Here is an excerpt from said guide:
To differentiate words in an identifier, capitalize the first letter of each word in the identifier. Do not use underscores to differentiate words, or for that matter, anywhere in identifiers. There are two appropriate ways to capitalize identifiers, depending on the use of the identifier:
PascalCasing
camelCasing
The PascalCasing convention, used for all identifiers except parameter names, capitalizes the first character of each word (including acronyms over two letters in length), as shown in the following examples:
PropertyDescriptor
HtmlTag
A special case is made for two-letter acronyms in which both letters are capitalized, as shown in the following identifier:
IOStream
The camelCasing convention, used only for parameter names, capitalizes the first character of each word except the first word, as shown in the following examples. As the example also shows, two-letter acronyms that begin a camel-cased identifier are both lowercase.
propertyDescriptor
ioStream
htmlTag
ā DO use PascalCasing for all public member, type, and namespace names consisting of multiple words.
ā DO use camelCasing for parameter names.

Alexander Davison
65,469 PointsThank you both! I wish that I could give you both a best answer, but unfortunately Treehouse doesn't allow that :(

Steven Parker
242,015 PointsYou might bear that in mind when you solicit an answer from someone specific by tagging them.
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsTagging Steven Parker