2 ms·
Yes and yes. Works like a charm for me when I need to learn a new area, including an unfamiliar area in a large existing codebase. Start with tiny snippets. Sp
by nine_k 4y ago
Yes and yes. Works like a charm for me when I need to learn a new area, including an unfamiliar area in a large existing codebase.
Start with tiny snippets. Spend a lot of time in a REPL, or write tiny tests, learning basic facts, proving intuitions, and connecting the dots. Write a lot of comments describing the findings, linking to the docs, etc. Ignore the urge to structure things beyond small, easily observable functions: not enough is known yet.
Eventually I convert a worksheet full of tiny snippets into a worksheet with a number of more interesting functions added, then with functions connected so that parts of the actual problem get solved. I can track the solution at every step back to the tiny snippets and comments.
Then I turn the worksheet into something like real code, using most of these functions, just structured properly, with tests split out, etc.