Hacker Newsnew | past | comments | ask | show | jobs | submit | ThisIs_MyName's commentslogin

Running non-trivial code in your head is far too tedious for daily use. I'd much rather add debug checks for invariants when I want to confirm that the code works the way I expect it to.


The human brain has, what, about 7 registers in medium term memory?


5±3, if I remember right, but of indeterminate size. You can expand it to a couple dozen by moving up and down abstraction levels.

An exercise: I have 36 letters for you to memorize, in order and without mistakes: "The quick brown fox jumped over the lazy dog"

The sentence as a whole only uses 1 of those memory slots. As necessary, you can jump down one abstraction level to get 9 words, or again on a word-by-word basis to get the full 36 letters.

Code is the same. For example, use multiple slots to understand loop conditions, then file it away in a single slot as the whole conceptual loop. Use multiple slots to understand the loop body, in the context of one element; file it away as well. Combine them into a one-slot conceptual understanding of the whole loop. So on and so forth.

As you work with the conceptual models, you'll also end up with them in long-term memory and not have to do this reconstruction each time.

This pattern can continue indefinitely, with conceptual models of whole packages and systems. Most will do it unconsciously at that level as they become familiar with a codebase, but it works at every level, and is the basis of "running code in your head".



> The Netflix/Qwikster you’re paying less but more debacle

What did I miss?


7 years ago, Netflix decided to split into streaming (Netflix) and DVDs by mail (Qwikster). It didn't last long


It sort of did... The DVD portion of Netflix is now at dvd.com.


> if you're a GPU manufacturer, make sure the 3V3 supply is tolerant to being externally driven and doesn't backpower anything in the GPU

That's exactly what a "diode on the device side" does.


Which adds loss. There are better ways to solve this than the "Undergrad Freshman" approach.


It hasn't won yet.

https://bazel.build/


bazel

* does not support Windows fully.

* requires users to install a large amount of dependencies (both JDK and Python 2) just to build a C project.

* requires user to manually write BUILD files for all third party libraries.

* has no way to discover existing libraries on the system.

* no integration with IDEs (most pertinent to Windows users).

Therefore bazel is not going to win over CMake any time soon. Not because it is worse, but because Google's needs are different from everyone else.


We've got at least a year before that happens.


I don't think this "feature" existed a couple of years ago.


Ok so they have hardware support for unaligned accesses, but is it atomic?


I think he's talking about the big unnecessary "Welcome Back!" box that appears randomly.


Exactly. Doc-beta link mentioned above is at the area I never focused on. Jobs, >Documentation<, Tags.



I haven't had a single problem with it. And at least recommend another front end then, because straight MPV is a horrible user experience.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: