Lurker News
When in the past I've picked up a reference manual or something of the sort I'd go slowly, lookup every word I didn't understand and started experimenting as soon as possible.

But that is quite time consuming and intense. I've been considering skimming through the whole things to get kind of a big picture of what the thing is and where I'm going and then going back a second time to catch then the details and experiment.
Any other ideas? How do you tackle learning something new and complicated?
(ps. the complicated thing for me right now is kernel development, including writing proper C)

Comments (175) 99 threads

Earlier comments
cryptonector#
Over the years I've learned many many things in depth. I've worked on codebases totaling hundreds of Mlocs. Perhaps I can say a thing or two about this.

First, it takes time to develop a method that will work for you, and I won't pretend that mine will, but as that's what I know... The first time you have to do this is the hardest, but each time you'll feel like you're at the bottom of the Himalayas and have to climb to the top without help -- you might always feel a bit helpless at first, and you might have to defeat that feeling every time, and that's OK.
Second, you need to get a handle on concepts first, details later. When you deal with hundreds of millions of lines of code you just can't know enough of the details. Instead you need to know how to navigate your way around the landscape, and you need to know the general lay of the land, and key landmarks. This will help you organize the details that you must remember, and discard the ones you can refresh as needed.
Third, the ABAB pattern to dealing with prerequisites is essential: learn as much of A as you need to before you block having to learn some of a prerequisite B, then switch to B enough to get back on track to A, lather, rinse, repeat. Even establishing all the prerequisites and topologically sorting them might be ETOOHARD, and learning them all in the right order might be ETOOBORING or not good enough to build the muscle memory you need for the earlier topics.
Fourth, learn the tools early. Whether you use a proper IDE or integrate usage of a bunch of standalone tools into something like an IDE, you'll need one of them.

RaitoBezarius#
Every answer here are super good and I agree with most of them. What I would add is:

Try to find a way to make it easy to test a lot of things, for example, get yourself a good environment to do kernel development with automatic virtualization, automatic setup of debuggers, automatic generation of initramfs based on what you want to do, etc.
So that you can focus on a write-build-test cycle ; this way you minimize cognitive load.
To summary, automation & environment setup matters.

dvirsky1 reply#
I guess my method for new frameworks / languages / etc is sort of a combination of top down and bottom up. I start with very high level overview, followed by a very simple tutorial, then work my way up in the hands-on path, and work my way down in the reading and theory path. One reinforces the other, so the reading does not remain abstract, and the practical has context.
lanstin1 reply#
For an actual framework I always like to step thru a typical unit of work line by line in the debugger, from accept to write (I mostly do server processes). It is surprisingly illuminating to see how IO is managed and hoe the layers interact and fit together. It gives data to build a robust mental model of the framework. This is why I weep when I see some Spring backtracks with 100 or so stack layers.
dvirsky1 reply#
I was reading the first half of your comment and immediately went "but.. but... what about those huge Java stack traces?".
lanstin#
It seems that good spring developers are able to work without a mental mode of the execution environment. Or they are much more able to hold 40 items in their working memory than I. (I have always been happier in smaller environments than larger, more Scheme than CL, more C than C++, python not perl, node but not npm, presently falling in love with Golang. I help my Java friends with OS or crypto knowledge but I don’t type much into their code base.

Load more comments