3 ms·
Even if you only have one client - do you really want to manually hunt down all profile-card instances and update the styling anytime you need to change the sty
by groby_b 8y ago
Even if you only have one client - do you really want to manually hunt down all profile-card instances and update the styling anytime you need to change the styling?
And if you had a bug related to profile-card styling, are you going to find all cards to update the styling? Are you sure you didn't forget some?
This approach seems to be based on the idea that design is completely immutable after the initial conception. This is... not how design usually works :)
- Flenser 8y agoIt's unclear to me the problem you are addressing. Searching for places to make amendments is an important consideration when naming something. I would have thought that class names like "profile-card" would be easier to search for than "m-5 p-5 text-gray-light bg-gray-darker border border-gray-light". Especially if you have some page elements which may look the same now but are functionally different and could look different in the future. How would you find one and not the other? Is that the problem you were addressing or did you have something different in mind?
- groby_b 8y agoI was commenting on the original proposal, even in the single-client context. So, we're talking about the same problem - I just obviously wasn't very clear about it :) So, yes, semantic names matter, and functional names are a bad idea in the long run, because they shatter maintainability.