f0b473e1-c892-4a21-8319-68f56f713c0d #9615
Replies: 7 comments
-
💯 - project names like shared and common come to mind as well, they are horrible since they become a catch all receptacle |
Beta Was this translation helpful? Give feedback.
-
Well I guess it's time for me to rename this then
|
Beta Was this translation helpful? Give feedback.
-
This is important because it's an easy one to miss - generic names will make sense when you create them, but to other devs (or future you) they will not be clear at all. |
Beta Was this translation helpful? Give feedback.
-
I regard this as the most important tip, as this can lead to costly misunderstandings about what a section of code achieves. |
Beta Was this translation helpful? Give feedback.
-
It's important to take the time to label anything with a meaningful title, it helps with searchability and clarity. |
Beta Was this translation helpful? Give feedback.
-
I used to write things like Helper and Manager a lot because it is generic and you can put everything in it easily. After this I came to realize it is really hard for other devs to read it afterwards and I'll change them to specific meaning names instead. |
Beta Was this translation helpful? Give feedback.
-
Good naming the services or handlers are really important to understand what functions they are responsible for. |
Beta Was this translation helpful? Give feedback.
-
f0b473e1-c892-4a21-8319-68f56f713c0d
Generic names like "manager" are easy and can trick us into thinking they are good for consistency. But they can quickly undermine conveying the meaning of your code.
https://www.ssw.com.au/rules/avoid-generic-names/
Beta Was this translation helpful? Give feedback.
All reactions