When is a function name too long?

后端 未结 27 2005
伪装坚强ぢ
伪装坚强ぢ 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 19:03

    I think that this is especially important for public names - they should not be too long, but how long too long is is very subjective. Always have better a longer and descriptive name than a too short name.
    For private methods even very long names are really no problem in my opinion.

提交回复
热议问题