View Single Post
  #4 (permalink)  
Old October 6th, 2015, 11:58 AM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Yeah their preferred convention is purposeControlType as in setBackgroundButton. Kind of silly considering how dead-set they are against using a control name prefix as in btnSetBackground.

Some developers argue that you should leave off the control entirely because it shouldn't matter what kind of control it is. For example, it shouldn't matter whether setBackground is a button, menu item, or something else. But then what do you do if you want to have a menu and a button?

It doesn't really matter as long as you're consistent.

I'm glad you like the book. Post a review when you have a chance!

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)