3 ms·
This comes from some dated idea for stuff like C where "its okay to use shorthands for variables" but is it really? The only place I allow it is simple iterator
by giancarlostoro 7mo ago
This comes from some dated idea for stuff like C where "its okay to use shorthands for variables" but is it really? The only place I allow it is simple iterators, but now we have enhanced loops where even this is unnecessary. We don't need to save on pixel screen space like if its still the 90s. Even with a simple 1080p monitor you can fit plenty of words and code.
Give your variables, functions, classes meaningful descriptive names that make sense to humans.
- dolmen 7mo agoAs creators of Go have strong ties with the creators of C, that idea is not so dated.
- giancarlostoro 7mo agoJust because some brought it back to modern languages, doesn't mean it's not rooted in a practice from constrained hardware. I'd rather we name things what they mean.