7 ms·
Memorizing a programming language using spaced repetition software (2013)
- vallassy 3y agotl;dr: Anki helps you remember stuff. https://apps.ankiweb.net/ https://apps.ankiweb.net/
- Geeflow 3y agoI can't recommend spaced repetition enough. I use it for everything: Phone numbers, names, business knowledge, dungeon and dragons, ... A different article[1] sums it up pretty well: "Anki makes memory a choice, rather than a haphazard event, to be left to chance." [1] https://augmentingcognition.com/ltm.html https://augmentingcognition.com/ltm.html
- darkclouds 3y ago[dead]
- max_ 3y agoI was really fascinated with the idea of space repetition. For a long time. I only have 1 problem. There is no good space repetition app on for smartphones. Websites & computer apps are just too clunky for me to use the effectively. I would like to build one, but I really don't have a comprehensive on how the entire concept works and how to implement it. Does anyone recommend any great books or resources that comprehensively describe space repetition & how to use it effectively
- allig256 3y agoWhat were your issues with the standard Anki app? It might not be the prettiest app, but it is effective.
- max_ 3y agoEvery time I open the Anki app I really don't know where to start or how to use it. There are just too many options distracting me. It would be easier if the features were reduced & the app kept minimal. Think the apple notes app & Google keep, but for space repetition. Anki feels like Microsoft Word. Also a sample collection of decks with something to start learning right away (just to understand how the app works) would help me alot. Maybe a language, math theorems, APL verbs etc.
- Ajedi32 3y agoWhich app are you using? AnkiDroid seems fairly straightforward, at least for basic usage. There are a lot of confusing options buried in settings, but the fundamentals aren't that hard to figure out. Maybe it just needs a better on-boarding experience, like a link to the download pages for a few featured decks?
- delackner 3y agoAnki is well regarded and has both first and third party (AnkiWeb) iOS apps
- hiAndrewQuinn 3y agoYeah, the Anki apps are honestly some of the best apps I've used on both Android and iOS. Assuming you already know how Anki itself works, that is.
- gentleman11 3y agoThis guy's work more or less kickstarted the movement, but be warned: there's a lot of reading here https://supermemo.guru/wiki/SuperMemo_Guru https://supermemo.guru/wiki/SuperMemo_Guru
- max_ 3y agoThank you very much. The resource is such a gold mine. God bless you!
- PNewling 3y agoThe book Make it Stick by Henry L. Roediger III, Mark A. McDaniel, and Peter C. Brown includes a good deal about spaced repetition.
- zsoltkacsandi 3y agoWhat do you mean by speaker repetition app?
- mahatofu 3y agoI find Brainscape to be the nicest overall app. Free to use. Tons of existing content. Mobile and web friendly.
- victorlf 3y agoThis is the basic idea behind https://python.cards https://python.cards, the site I'm building to learn Python with spaced repetition. The hard thing is building the deck. With pre-built decks I expect to greatly reduce the effort required while getting most of the benefits of spaced repetition learning.
- dan-g 3y agoWriting effective cards is more of an art than a science, I've found—and seems to work best when you're the one writing the cards for yourself. A good resource for those interested in learning the craft is "How to write good prompts" by Andy Matuschak: https://andymatuschak.org/prompts/ https://andymatuschak.org/prompts/ However, he's also shown that cards can be written for a general audience with careful thought, see his & Michael Nielsen's work on http://quantum.country http://quantum.country. I'll be curious to see how python.cards goes!
- supersrdjan 3y agoAs a complement, I would also suggest this thoughtful article with a broader perspective, explaining the proper place of SRS in learning to code to a professional level: https://experimentallearning.substack.com/p/functions-describe-the-world-how https://experimentallearning.substack.com/p/functions-descri...
- stared 3y agoQuite a few times, I got asked, "What should I memorize when learning Python?". I always answered: "Nothing! You will naturally memorize things that matter and others don't". Obviously, it is contextual - a backend developer will memorize different things than a machine learning researcher. When we use anything, spaced repetitions come naturally (so it is also why our brain is tuned to them!). Artificial spaced repetitions are often helpful when we learn in an artificial environment - a new human language when there is little opportunity to practice it, things for an exam, etc. With programming languages, as long as you have a computer, there is no reason to learn it without actually using it.
- karmakaze 3y agoMy answer would be to memorize useful facts that can't be derived from other knowledge. But put the most effort in building up fundamentals that can synthsize most usages. Arbitrary things like obscure names, weird parameter orderings, mutated inputs, etc are all the sorts of gotchas that can be learned up-front if you care to know them before being bitten. An example for Python is the del statement `del d[key]` which I find arbitrary and non-intuitive. Actually when learning any language I usually learn the collections usages early--these would be good to memorize rather than repeatedly looking up and learning case-by-case as a time saving (non flow state breaking) measure. For Swift it was all the weird call forms with keyword/symbols that move around rather than being additional parts of a complete form.
- stared 3y agoLearning parameter ordering is precisely a thing that I advice against memorizing. Just use IDE. Other things - well, there is Google, there is StackOverflow, and now - also ChatGPT with GPT-4. Sure, it might not be enough for learning (at least, not for everyone), but well enough to avoid needless memorization. Memorization always comes at some opportunity cost of using time (and, well, brain capacity) for something more fruitful, e.g., learning good programming patterns, wise abstractions, etc.
- karmakaze 3y ago
- dang 3y agoRelated: Memorizing a programming language using spaced repetition software (2013) - https://news.ycombinator.com/item?id=30545544 https://news.ycombinator.com/item?id=30545544 - March 2022 (9 comments) Memorizing a programming language using spaced repetition software (2013) - https://news.ycombinator.com/item?id=21481461 https://news.ycombinator.com/item?id=21481461 - Nov 2019 (43 comments)
- jackmott42 3y ago[flagged]
- hiAndrewQuinn 3y agoSpaced repetition is great! Reading and making around 300 Anki cards out of Networking for System Administrators was one of the highest ROI things I did in a while - I finally understand at a high level how all those networking stacks actually work together, and I know a bunch of useful new command line tools to boot.
- meindnoch 3y agoMemorizing a programming language??? Why would you do that? Seriously.
- marcodiego 3y agoIn C++, how do I declare a class? Should I put a ; after declaring it? And when creating a closure, what exactly &, = mean? When should I use std::cout and when not, and why? What exactly is the syntax for inheritance? Ok, you can learn all that while using the language, but a card deck allows me to review it 5 minutes before sleeping.
- bongodongobob 3y agoI used to just Google stackoverflow, but, I mean, we have ChatGPT now. https://chat.openai.com/share/10801cef-37a5-41cf-a0d3-52cf3827ebd4 https://chat.openai.com/share/10801cef-37a5-41cf-a0d3-52cf38... I don't see why you'd try to memorize a language. We have the Internet. /shrug
- deleted 3y ago[deleted]
- dan-g 3y agoFor me, memorizing things like this is useful because context switching from flow state → searching something → back to flow state takes time and mental energy, and can derail me pretty easily.
- lelanthran 3y agoAnd this is the reason that modern languages tend towards the incomprehensible.
- cellularmitosis 3y agoThough I love Swift, the transition from ObjC has left some warts in parts of Foundation / UIKit, and regular expressions are a great example of that. In Python, I can use regex from memory. In Swift, I have to look up the docs every time. It would be nice to have it memorized.
- chenxi9649 3y agoAlso saw this on Twitter a few days ago https://www.pinecards.app/ https://www.pinecards.app/ Haven't tried it myself but it seems like a more modern/gamified version of Anki. I wish there was a market place for spaced repetition decks on different topics/fields. It does seem like the closest thing we have to downloading a "topic" into our brain.
- Ajedi32 3y ago> I wish there was a market place for spaced repetition decks on different topics/fields Anki has https://ankiweb.net/shared/decks https://ankiweb.net/shared/decks So far I'm really enjoying the geography decks, like https://ankiweb.net/shared/info/2109889812 https://ankiweb.net/shared/info/2109889812
- Rexxar 3y agoI'm not a regular user of Anki. But if I start again, how does it work when someone want to upgrade a package to a more recent version ? Does it merge correctly if I have added some cards or added some personal fields to the "Note Types" (and updated some card consequently) ?
- Ajedi32 3y agoI'm still pretty new myself, but I'm pretty sure adding card works but changing fields doesn't.
- rsanek 3y agoThis support landed late last year as part of https://github.com/ankitects/anki/releases/tag/23.10 https://github.com/ankitects/anki/releases/tag/23.10 > .apkg imports are able to merge changed notetypes, and can exclude scheduling data
- isaacaderogba 3y agoI'm the developer of Pine, thanks for sharing! I've actually written a bit about how the whole memory scoring system works here https://pine.substack.com/p/designing-spaced-repetition-systems https://pine.substack.com/p/designing-spaced-repetition-syst...
- brushfoot 3y agoWhen this comes up, I often see the criticism that it's better to learn by doing, because you retain what's necessary and forget the rest. On the contrary, that's exactly the problem this solves. There are lots of things that you don't use day to day that it may be useful to have in memory when the need arises. That could be libraries, syntax, concepts, patterns, etc. An example for me is CSS flexbox. I work with CSS just enough that when I need it, I don't want to sift through blog posts and MDN documentation to get what I need; I just want to know it. Chances are you can think of similar situations in your own work or personal life.
- breathen 3y agoWhy not just google it? Seems like a better use of both time and brain space. Reminds me of Socrates complaining about how the kids these days write everything down and don't bother memorizing anything.
- jodrellblank 3y agoWhy would you learn Spanish? If you got to Mexico you can just Google "how to understand Spanish" and then you'll understand it completely, just like in the Matrix. While you are trying to Google the right thing and make use of the answer, you're missing the limited chance to be talking with people in Spanish, had you already known it. Instead of Googling "how do I trim a string in {language}" you could be thinking about the problem you actually want to solve.
- singron 3y agoYou can have conversations across language with Google translate. You take turns speaking into the microphone. It's actually pretty awesome. Obviously you probably aren't going to make best friends or fall in love this way, but you can ask almost any question and understand the answer in many languages without having had spent several years learning the language.
- breathen 3y agoThis seems like a case of comparing apples and oranges. Human language processing is largely based on sounds and requires extensive immersion to even be able to differentiate sounds, syllables, words, tone, etc. That is—you need a lot of training to even figure out what to look up (ignoring the tech-assisted technology that is still extremely rough in my experience). There's no parallel to programming languages even in the slightest. Especially once you recognize patterns across syntaxes, the immediate value of understanding any one programming language plummets to near zero. Exceptions might be: - SQL, just a singularly useful syntax to internalize. Probably also goes for datalog if you use that. - Bash Actually, that's all I can think of.
- MichaelNolan 3y agoIt’s interesting to see different perspectives here. I often recommend spaced repetition for software and programming adjacent topics like networking, OS fundamentals, and many other areas, but I always recommend *against* using SRS/Anki for actual programming syntax. I find syntax cards to be low value, and surprisingly difficult during review.
- jamesb1234 3y agoI wrote a longish guide about learning to program from scratch using spaced repetition. I can't recommend it highly enough. It helps immensely in boosting you past the chasm of incoherence in the beginner stages when you are getting bombarded by unfamiliar terms. I included lots of example cards at the bottom. https://experimentallearning.substack.com/p/functions-describe-the-world-how https://experimentallearning.substack.com/p/functions-descri...
- oglop 3y agoI work with a guy that’s always saying he learns by doing and sidesteps explaining anything ever with that, or to cruelly put down a team member that needs some training. I enjoy reminding him of my time in the army. We were just handed rifles and grenades and told to just go learn by doing.
- kazinator 3y agoAnki needs a better answer for skipping a card than "bury". There are times when you can't recall a card. But you can't move on to the next one until you answer it. You take a break for five minutes and, poof, you remember the card! In that five minutes, you could have reviewed more cards. If you bury it the card, you won't see it until the next day; it doesn't play well into this situation. Anki should let you review all the cards that are currently due in any order; i.e. move back and forth among them and answer them in any order you see fit.