textBoxEmployeeName vs employeeNameTextBox

后端 未结 16 1001
死守一世寂寞
死守一世寂寞 2020-12-16 00:11

Which naming convention do you use and why?

I like to use employeeNameTextBox, because:

  • It seems more natural from an English language perspective.
16条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 00:53

    Why not EmployeeName? Seriously how does the control type as part of the name when it is already provided by your IDE assist in delivering easy to maintain code? Consider Ottenger's Rules for Variable and class Naming

    K

提交回复
热议问题