Hungarian was good when we didn't have IDEs and plugins for the IDEs that would let us find what we were looking for other than by cruising through a drop down list that might, if you were lucky, be alphabetized. With VS2008 or 2010 and resharper, I'm 2 or 3 keystrokes from a search dialog to let me type in "Button" and finding BackButton
, OkButton
, CancelButton
far more quickly than hunting through a drop down.
In general, I've gotten tired of goofy naming conventions. If I wrote a manual on how to use my software I would direct my user to use the "Back button", therefore it's fairly intuitive to name the object BackButton
. Your vocabulary remains the same when your talking to a Business Analyst as when you're talking to another programmer and I can't see anything wrong in that.
The other problem with any sort of abbreviation as a prefix that isn't super intuitive is that in an OO world, it quickly falls flat on it's face and everything ends up being obj
or ctrl
(for the UI components). I really can't find much use in that. Those drop down lists (esp the VS drop downs that only do 1 character for type ahead) become a pain in that case. When there's 3 btns
on a list, hey, that's easy. When there's 20 ctrls
on that list, you're back at square one.