If the context is clearly given by the parent, DO NOT repeat the context in the property name; If the context is NOT adequately given by the parent, then DO give the context in the property name up to what is necessary.
Let's give an example of each case:
within supplierOrders[], supplierOrderNumber should become number because its parent supplierOrders[] is giving the context.
within supplierOrders[], purchaseOrderNumber should NOT become number because its parent supplierOrders[] is NOT giving the right context, it is not the number (identifier) of the supplierOrders[], but of the number (identifier) of purchaseOrders[].
Our (new) naming convention for properties being:
Let's give an example of each case:
within
supplierOrders[]
,supplierOrderNumber
should becomenumber
because its parentsupplierOrders[]
is giving the context.within
supplierOrders[]
,purchaseOrderNumber
should NOT becomenumber
because its parentsupplierOrders[]
is NOT giving the right context, it is not thenumber
(identifier) of thesupplierOrders[]
, but of thenumber
(identifier) ofpurchaseOrders[]
.