When is a function name too long?

后端 未结 27 2249
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 18:45

I try to be rather descriptive with my function names, where possible. This occasionally results in function names in the twenty to thirty character range such as \"GetActionFr

27条回答
  •  感动是毒
    2021-02-03 18:47

    Method names can be very very long depending on the language (Maximum Method Name Length). At some point your going to use that function or method and typing out a sentence for a function names seems unnecessary.

    Keep your code maintainable, use comments instead.

提交回复
热议问题