4 ms·
Compactness and readability are related, in the sense that your working memory also works somewhat in terms of lines of code. There's a natural trade-off in th
by munchbunny 7y ago
Compactness and readability are related, in the sense that your working memory also works somewhat in terms of lines of code.
There's a natural trade-off in the sense that in order to make something more compact, you have to rely on the context to provide whatever information you remove. For example, the ternary pattern of chaining ?:'s. You have to be used to it. However, once you know it, the more compact pattern works fairly well.