Multiple / single name in list return methods

seems like a trivial point until you realize that you need consistency. Not being a native English speaker, I prefer to ask for both grammar and style. Which one should be preferred among these method names, returning a list of URIs, each of which is associated with an object?

objectUriList()
objectsUriList()
objectUrisList()
objectsUrisList()

Also, you consider it a good style to make explicit that the returned object is a list in the method name. Perhaps something like objectUris()(or its correct form) would be beautiful and intuitive in any case.

+3
source share
6 answers

objectUriList(), . , , Uris, .

objectUris() , , , IDE.

+1

. objectUriList, objectUris. uris.

= .
= .

.

+4

objectUriList . ( , objectUriList ).

, , ( , crappier). , .

+2

objectUris(), "". , .

+1

ObjectUriList.

/, , , "ObjectUriList" , "ObjectUris", , "ObjectUri" .

0

I think, to distinguish between Array and List, it's nice to add Array with 's' and List with a list.

0
source

Source: https://habr.com/ru/post/1725593/


All Articles