the contacts of your DB given their emails... how could you call it?
GetContactsByEmail(List<String> emails)
GetContacts(List<String> emails)
It's merely a naming doubts 🤔
its a matter of taste, which ever feel more "right" to you
The methods must be CamelCase. I like getContactsByEmail
if emails are the unique medium to retrieve contacts, use getContacts buf if there are other media, change to interfaces or other DI patterns to accomplish the task
first one 🤔
you can truncate 'ByEmail' because having sufficiently adequate javadocs is enough
Обсуждают сегодня