4 ms·
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 pr
by animal_spirits 5y ago
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
- seph-reed 5y agoSo 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.
- cwaffles 5y agoMemorizing 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
- d3ckard 5y agoMost 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.
- jeremyjh 5y agoYes, communicating intent to other programmers and our future selves is hard, so let's not do it.
- iovrthoughtthis 5y agowell, 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