You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you should think about naming conventions:
When namespace should be in singular and when in plural form.
Use or not smurf naming convention.
ad. 1. For example in Hydrator you have plural Annotations namespace which contains many annotations (as the namespace name impies) but then you have singular Handler namespace which contains many handlers.
IMHO if namespace contains collection of classes of shared type then name should be plural e.g ApiClients is plural because it contains many api clients. If namespace contains parts of something and each part represent something else then name should be singular e.g CommandBus in Github is singular because it doesn't contains many command busses but Command and Handler namespaces.
ad. 2. For example in Hydrator namespace Annotations contains annotations without Annotation suffix but then you have Handler namespace which contains handlers with Handler suffix.
IMHO this is a matter of debate.
The text was updated successfully, but these errors were encountered:
Maybe we should set up a repo with conventions and schema how to set things up. I'll set that up and start writing things out soon. Personally I think consistency is more important then conventions.
I think you should think about naming conventions:
ad. 1. For example in Hydrator you have plural
Annotations
namespace which contains many annotations (as the namespace name impies) but then you have singularHandler
namespace which contains many handlers.IMHO if namespace contains collection of classes of shared type then name should be plural e.g
ApiClients
is plural because it contains many api clients. If namespace contains parts of something and each part represent something else then name should be singular e.gCommandBus
in Github is singular because it doesn't contains many command busses butCommand
andHandler
namespaces.ad. 2. For example in Hydrator namespace
Annotations
contains annotations withoutAnnotation
suffix but then you haveHandler
namespace which contains handlers withHandler
suffix.IMHO this is a matter of debate.
The text was updated successfully, but these errors were encountered: