4 ms·
I use Anki for code. Here's why Anki beats Code Cards. Code Cards's differentiating feature is the ability to type the answer before viewing it. But I've fou
by xamuel 10y ago
I use Anki for code. Here's why Anki beats Code Cards.
Code Cards's differentiating feature is the ability to type the answer before viewing it.
But I've found it's crucial that each card be fast. Typing the answer would be way too slow.
For Ankying something like "echo $PATH | tr ':' '\n'", it's better to create multiple fill-in-the-blanks cards testing each part:
* Write $PATH on separate lines: ___ $PATH | tr ':' '\n'
* Write $PATH on separate lines: echo $PATH ___ tr ':' '\n'
* Write $PATH on separate lines: echo $PATH | ___ ':' '\n'
* Write $PATH on separate lines: echo $PATH | tr ___ '\n'
* Write $PATH on separate lines: echo $PATH | tr ':' ___
(Skip the first two if you already know "echo" and "|".)
When these cards come up you only need to spend a fraction of a second. And if you forget one part, you only need to fail that one part.
Still a nice project. Anything to increase awareness of Spaced Repetition :)
- oskarth 10y agoI've tried the multiple fill-in-the blanks card approach with Anki, but I'm personally not a fan. It feels too complex and reductionistic for code, but YMMV. Speed is indeed of the essence [1], but I prefer to actually feel myself coding the interesting parts of the code, not just filling in a blank code word here and there. It's definitely a good alternative though! Do you have some examples of using the input field? I tried to get it to work a while ago but had issues with it. How does it play with code specifically? 1: I wrote about it here https://www.oskarth.com/srspractice/ https://www.oskarth.com/srspractice/
- skiman10 10y agoCan you share your cards? I find it better to use prebuilt cards for me personally because I like to go through them as quick as possible and by making my own cards I feel like it slows me down for the marginal return I get for making them myself.
- xamuel 10y agoI'd like to share sometime but it'll take work to filter out copyrighted and personal material.
- kovek 10y agoCan you share how you create so many cards? Or are there good resources that you followed?
- xamuel 10y agoHelps that I have an hour commute each way, 5 days a week. Public transport FTW! Aside from that, patience is key. 10 or 15 cards per day adds up over a period of years
- jeffshek 10y agoThis is also doable via Anki's cloze feature. Write {{c1::$PATH}} on separate lines: "{{c2::echo}} {{c3::$PATH}} | tr ':' '\n'" The card above will be 3 separate cards, but takes only about 10-20% more time than creating regular cards.