Comment on Left to Right Programming

<- View Parent
squaresinger@lemmy.world ⁨4⁩ ⁨days⁩ ago

Did we read the same blog post?

Not a single time did OOP talk about readability. That was not a point at all, so I don’t know why you are all about readability.

It was all about having a language that the IDE can help you write in because it knows what you are talking about from the beginning of the line.

The issue with the horrible one-liner (and with your nicely split-up version) is that the IDE has no idea what object you are talking about until the second-to-last non-whitespace character. The only thing it can autocomplete is “diffs”. Up until you typed the word, it has no idea whether sum(), all(), abs(), <, >, or for-in actually exist for the data type you are using.

If you did the same in Java, you’d start with diffs and from then on the IDE knows what you are talking about, can help you with suggesting functions/methods, can highlight typos and so on.

That was the whole point of the blog post.

source
Sort:hotnewtop