Pascal case vs. camel case vs. hungarian – quick example

Pascal case vs. Camel case vs. Hungarian notation

Pascal case vs. Camel case vs. Hungarian notation

It’s funny how often we forget the name of the type of casing when writing variable names.

Pascal case example

HotelManager, DetergentQuality, AccountNumber etc. Capitalize first character of important words

Camel case example

hotelManager, detergentQuality, AccountNumber etc. Start with lower case and then capitalize first character of important words

Hungarian notation example

An input text box – txtAccountNumber, an array – arrayCustomers etc. Just don’t use this. Just…please don’t.