News for hackers. Stuff that matters.
Re:Netflix's async sendfile now in FreeBSD-current by derefr on Saturday January 09, 2016 @02:32AM (#10870449)
There are few other things in the world that work like source code, where "understanding" isn't something you do linearly, or even hierarchically, but graphically, by exploring the connections between elements.

To grok a program, or a programming language, basically refers to having a graph of its elements and their interactions as a model in your head. "Grokking some of X" doesn't mean that you have a patchy or "blurry" graph of the whole thing; it means you have a complete graph of some subcomponents, but not all.

To put it another way: "understanding" doesn't usually imply being able to recreate the thing yourself. "Grokking" usually does. It's not an understanding you can put into words; it's an intuitive ability to "feel" the rules of the system because you've effectively mirrored the structure of the system with the structure of your synapses.

The only other things you can "grok", I think, are spoken languages (though there, we refer to "fluency"—another specialized kind of "understanding"), and the rules of games and game-like things like the tax system.

Or: to grok is to experience the original designer's intent, such that you could take over from the designer without the code changing in tone/style/quality very much. One might say, for example, that Brandon Sanderson has grokked the Wheel of Time series, while Kevin J. Anderson merely understands the Dune series. It's the difference between "seeing what they did" and "seeing what they were going for."

Re:Netflix's async sendfile now in FreeBSD-current by jrcii on Saturday January 09, 2016 @08:26PM (#10873703)
>"Grokking some of X" doesn't mean that you have a patchy or "blurry" graph of the whole thing; it means you have a complete graph of some subcomponents, but not all.

I would say that's the difference between "I understand some of it" and "I somewhat understand it."

Ability to recreate and grasping intent appear to be proprietary connotations.

I would argue that all understanding is, to use your term, "graphical" due to the nature of thought and the structure of our synapses.

Re:Netflix's async sendfile now in FreeBSD-current by digi_owl on Saturday January 09, 2016 @03:02AM (#10870496)
I guess you could liken programming to Lego bricks.

When you have the programming language "groked" you do not see a loose pile of bricks, but what you can create from whats in the pile.

Re:Netflix's async sendfile now in FreeBSD-current by derefr on Saturday January 09, 2016 @03:46AM (#10870559)
Ah, that's not quite what I meant by grokking a programming language. The "designer's intent" bit is important. When you grok a language, that doesn't (just) mean you now understand how to use the language; it means you now understand how to extend the language, or update the language, in a way the original designers would have done themselves if they had continued working on it.

To grok C and Unix, is to put yourself into a mindset where you would naturally come up with Go and Plan 9; and where e.g. C++ would seem, in comparison, ridiculous.

Grokking a thing doesn't mean you have to agree with the mindset of its designers; it just means you have to be capable of wielding that mindset, because it's the optimal mindset for understanding the thing itself.

The interesting thing about grokking a system is that you no longer need to attempt to "understand" the system piece-wise, because you can now guess what the designer would have provided for the problem you're trying to solve, and then just blindly "reach for it" without having to know it exists. There are quite a few times I guessed the existence of a Unix utility without having to be told about it, simply because it 'fit' the Unix philosophy to have a program with that function exist.

Instead of the lego analogy, I might go with IKEA: build enough of their furniture, and you don't have to read the manuals to put together new pieces any more. When you survey the particular parts you got out of the box, you can guess pretty accurately what the manual is going to say.