So this one is aimed at the programmers out there, with a little pet peeve of mine. I wrote the code standard at my company, with the help of the other developers here, but I really have to say that it's just common sense that you don't use variable "integer" to represent an integer unless it's just a counter used in a loop.
In other words, be just a LITTLE bit creative people. If you're counting inventory, how about "ammtLeft." If you're working on capacity, "seatsRemaining." Hell, I don't care if you use "placesForAsses" just put something there that is meaningful! "Count" doesn't really cut it, nor does "total" in any cases where it might be ambiguous what you're using it to total.
So unless you're like me and you're naming your strings "int" and your floats "string", then please just try to give it 15 seconds of thought and make it just that much easier to let someone else help solve problems without deciphering what you wrote line by line. Thanks!
Why you limit it to variables ?
ReplyDeleteit can be applicable to page name, function name etc
Definitely, I agree that you should use meaningful names in Methods, Classes, variables, pages, objects (tables for you non salesforcers), and anything else you can think of, I just was focusing on just one for this rant.
DeleteIt's an excellent point though.. so everyone listen up.. MAKE EVERYTHING MEANINGFUL! :)
hmmm... life lesson in there somewhere?