by notsureaboutpg · 5y ago · 0 comments
Because at the end of the day the function of the code is not the function of speaking or writing the English language.
Styling front-end components does not work like the English language works. I can call something "big" in English and everyone knows what I mean, but the browser will determine what an element having the "big" class means based on the context of its parent elements and its children elements. That difference makes it extra confusing to use code that's trying to be "semantic" especially if the "semantics" are trying to hide more expressive and complicated functionality from the user.