Hi, me with my friends have dispute -> what is ...
# random
h
Hi, me with my friends have dispute -> what is plural form of “offerId” in simplified case of: (given this offer is like offers on ebay)
Copy code
class Offer(
   id: Offer.Id
...
)
Database:
Copy code
fun getOffersIds(): List[Offer.Id]
or
Copy code
fun getOfferIds(): List[Offer.Id]
Which is more correct in english language?
2️⃣ 16
1️⃣ 3
w
Not saying about which is correct, but I understand
getOffersIds
as
I will get ids pertaining to multiple offers
, but
getOfferIds
reads as
there is one offer which has multiple ids
a
Yes, “offer ids” is multiple of “offer id”. “offers ids” sounds like a multiple of “offers id” (and reading it, I wonder: so how does one id represent multiple offers? is it an “offer group id” ?)
k
or you could read it as "offerId s" 🙂
p
have hundreds of these in my project and always use the equivalent of
offerIds
.
offersIds
is wrong.
👍 1
w
Come to think of it, I wouldn’t write
errorsIds
either 🤔 I change my vote 😄
s
Another option would be
getIdsOfOffers
..
k
or
offerIdList