Comment on Left to Right Programming

Deestan@lemmy.world ⁨4⁩ ⁨days⁩ ago

Is string length len, length, size, count, num, or # ? Is there even a global function for length? You won’t know until you try all of them.

This is Python basics, so the argument would be to optimize readability specifically for people who have zero familiarity with the language.

(The other examples have the same general direction of readability tradeoff to the benefit of beginners, this one was just simplest to pick here)

That’s a valid tradeoff to discuss, if discussed as a tradeoff. Here it is not. The cost to readability for anyone with language familiarity appear to be not even understood.

source
Sort:hotnewtop