(Replying to PARENT post)

It's taken... I dunno, 50+ years?... but it's nice to see more and more code being written that doesn't assume programmers are superhuman beings with an IQ of 250 and infinite concentration and working memory. We need all the help we can get, so that we can focus as much of our precious, limited cognitive firepower on what really matters. When even John Carmack is talking about getting all the help he can from his development environment [1], you really ought to listen.

[1]: http://number-none.com/blow/john_carmack_on_inlined_code.htm...

๐Ÿ‘คjerf๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Pair debugging is an exercise in patience that I often lose.

If I had a dollar for every time I asked someone "Okay, look for other uses of this variable" and they grab the mouse and stare at the screen because THEY'RE READING THE ENTIRE FILE LOOKING FOR A PIECE OF TEXT, instead of using any of the dozens of search mechanisms at their disposal, I could retire and write self-help books for programmers.

Stop trying to white-knuckle everything all the time, you masochistic people. Use tools like a sentient creature is supposed to.

๐Ÿ‘คhinkley๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

> it's nice to see more and more code being written that doesn't assume programmers are superhuman beings

I would say that most compilers don't even assume the programmer is human. The root cause of bad errors is that they emanate from the compiler, and are reported from the perspective of the compiler. That's why you get errors like "can't access method undefined of undefined", or the hell that is C++ template errors. Sure, the errors make perfect logical sense from the perspective of a compiler, but they make my human eyes bleed.

My favorite is a single missing semicolon that causes a cascade of unrelated errors, none of which indicate there's a missing semicolon.

grammars, parsers, compilers, and languages as a whole should be designed for humans first. Even if it makes the language implementation a little more complex, human users will benefit greatly and thank you for it.

๐Ÿ‘คcmontella๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Reading HN comments, I assumed everyone is a superhuman with an IQ of 250 and infinite concentration.
๐Ÿ‘คovercast๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Did you post the right link? That one was about John Carmack inlining some function calls and eliminating weird branching to (potentiall) reduce bugs/errors. Or am I missing something?
๐Ÿ‘คsmcl๐Ÿ•‘9y๐Ÿ”ผ0๐Ÿ—จ๏ธ0