Most Powerful Open Source ERP

Guideline Plural In ERP5 Is Written Using List And Count

Plural is forbidden in ERP5.
  • Last Update:2017-04-06
  • Version:001
  • Language:en

Plural In ERP5 Is Written Using List And Count

ERP5 coding style favours maximum explicitness, least ambiguity and high verbosity.

The use of plural forms or abbreviations should thus be considered as forbidden in ERP5 code unless it is required by inherited classes or imported modules defined outside ERP5. Instead of plural forms, use names ending with the list suffix (for a collection of values) or with the count suffix (for the number of values in a collection).

Good Example:

friend_list
friend_count
getFriendList
getFriendCount
getFriendListSize
countFriendList

Bad Example:

friends
getFriends