Boolean method naming readability

后端 未结 12 749
南笙
南笙 2020-12-12 15:10

Simple question, from a readability standpoint, which method name do you prefer for a boolean method:

public boolean isUserExist(...)

or:

12条回答
  •  我在风中等你
    2020-12-12 15:49

    Method names serves for readability, only the ones fit into your whole code would be the best which most of the case it begins with conditions thus subjectPredicate follows natural sentence structure.

提交回复
热议问题