logoalt Hacker News

hughwyesterday at 10:35 PM1 replyview on HN

I've found that the less real estate my eyes need to scan, the faster I understand the code, even if its more tersely expressed and requires a little decoding. Relatedly, I've come to appreciate a line of code that does the thing rather than one that calls a function whose name might express what the function does, but I might need to go find it and and read its code. That works well if your language supports a terse expression. So I prefer you tersely multiply/reduce a list rather than call a function, but some languages just aren't friendly to that and demand verbosity.


Replies

doginasuityesterday at 10:52 PM

This is why kotlin is so amazing, unusually concise and unusually clear in meaning.