3 ms·
You can repo the shortness with a few tiny functions you put in your own library. Probably less than 1k vs all of query. Also some programmers opt for readabil
by greggman2 7y ago
You can repo the shortness with a few tiny functions you put in your own library. Probably less than 1k vs all of query.
Also some programmers opt for readabiltiy over terseness.
- wolco 7y agoMaybe it's just me but the terseness is beautiful. I've been changing my style to be more terse but that makes it more readable or easier to see the abstraction concept rather than the details.
- greggman2 7y ago> terseness is beautiful. I'd much rather read rect = element.getBoundingClientRect() area = rect.width * rect.height velocity += acceleration * deltaTime position += velocity * deltaTime than r = e.g() a = r.w * r.h v += a * d p += v * d but to each their own. Google, Apple, Microsoft, Facebook etc all specifically say terseness is not a goal and say to use whole words so naming a function '$' would be explicity against their guidelines. I suspect there's a reason for that. The most obvious is I don't know what 'a' or 'd' or '$' mean without digging through the code but I do know what 'area' or 'detlaTime' or 'getElementById' mean