Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is a line to be drawn somewhere. If you set your naming level too high, then it's not clear what you're doing in the details. If your naming level is too granular, then you start to lose clarity because you can't see the wood for the trees.

Regarding the problem of a developer new to the codebase being told to change the text size in a specific place; Tailwind works well in this specific situation.

At the beginning of your project, you will have chosen a (or accepted the default) text size scale. The new developer will probably choose the next largest step in the scale and step back. The new size will be in harmony with the rest of the project because it matches the scale. If this specific element is repeated elsewhere in the project, then it will be part of a component and all instances of that component will receive the change.

The right place for a considered name in this example is at the component level.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: