determining which verb to use for method names in Java

后端 未结 7 2133
半阙折子戏
半阙折子戏 2021-01-30 23:02

I understand that naming conventions are important for a number of reasons, most having to do with making your code more readable and easier to integrate into larger projects, e

7条回答
  •  后悔当初
    2021-01-30 23:15

    As you said and as we can see in the answers, the verbs used at the beginning of method names are almost the same verbs. I think, if same amount of effort is spent for writing related documentation, methods become much more understandable and integrable :)

    I also realized after reading the question, most of the methods I write start with get, retrieve, create. So again it seems verb selection does not matter so much.

    Best

提交回复
热议问题