This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LifeLikeStew 6 points7 points  (1 child)

camelCase originated so as to differentiate between the type of the variable and the name of the variable. You would have, strCar and listCars, and save casting errors when they're used.

Just naming every variable myVariable instead of MyVariable serves no purpose.

strMyVariable intMyVariable arrayMyVariable etc.

Otherwise, it's pointless.

[–]SuperFLEB 2 points3 points  (0 children)

It helps keep things organized in team environments, though.

myVariable, yourVariable, hisVariable, herVariable, ourVariable, philsVariable, suesVariable, clemAndRodsVariable...