Re:Tailwind CSS v3.0
by animal_spirits on Thursday December 09, 2021 @03:26PM
(#29502486)
Coming up with variable/class names is one of the most annoying aspects of programming, so any way we can eliminate that task I think is always going to be a productivity boom
[ Parent
| on HN ]
So strange. Using good variable names is even better than docs in my experience. And having HTML where every div is named helps a ton. It blows my mind how different people's preferences can be on these things.
Memorizing and looking up names has significant impact on my productivity, especially on codebases that I do not touch frequently. I often losing my train of thought or momentum because of too much abstraction
Most people suck at naming things. Also, most companies don’t have a strong culture for choosing names
carefully.
Honestly, I agree with you on the good variable names, but in average team setting I prefer no names than bad ones.
Yes, communicating intent to other programmers and our future selves is hard, so let's not do it.
Re:Tailwind CSS v3.0
by iovrthoughtthis on Friday December 10, 2021 @07:00PM
(#29516993)
well, sometimes. yes.
the semantics of most html elements is useless to know for more devs (and classes don't help users)
in fact a class like .red conveys more useful information to a developer than .standout-link because when we go to change the colour of the button it's the colour we care about, not the "purpose" of the button