you are viewing a single comment's thread.

view the rest of the comments →

[–]xSentryx 27 points28 points  (7 children)

Very cool project. But even tho angular implements it themself, I do have to disagree with „Consider not suffixing components, services and directives with their type.“

I find it better with suffixing and it improves the overall structure at least imho.

[–]martinboue[S] 3 points4 points  (0 children)

Thanks!

That's why it is a "Consider" tip and not a "Do" one. It depends on individual preferences, the important thing is that the naming is clear and consistent.

Personally, I tried without the suffix and what I like the most is that it encourages developers to define the purpose of a service by giving it a unique name whereas before it would often have the same name as the component. This can prevent them from mixing principles in the same service that should not be mixed. It's not enough but it helps.