by asimilator · 11y ago · 0 comments
I've studied a number of different subjects in my life, from foreign languages to computer science to math, etc. I clearly see the benefit of SRS and necessity of memorization in foreign languages (vocab is so critical, and there's really no way to avoid straight memorization of it), but I don't see how you could effectively encode your knowledge of a programming language on to flash cards. And I'm not sure why you'd want to when you can easily look up things in the documentation or on Stackoverflow.
Why would you memorise foreign vocab when you could just look up what you want to say in a dictionary or phrasebook?
It's a silly analogy, but there's some merit in the comparison. Searching documentation takes time - perhaps not that long, but enough that if you had to do it constantly you'd become frustrated very quickly. If you look at some code you wrote recently, it's almost certain that there's a bunch of standard library function calls in there that you didn't have to think twice about writing. The same goes for basic programming patterns. The more you expand your repertoire of memorised functions and patterns, the easier it becomes to go from design to code.
Right, very much so, because a live conversation using vocab is very much different than anything you'd do while programming.
> The more you expand your repertoire of memorised functions and patterns, the easier it becomes to go from design to code.
Yeah sure, but the criticality is much less, isn't it? Like it's not the rote memorization of function calls, or standard libraries that makes a good programmer. Design patterns, idiomatic language structures (i.e. how do I write truly "Pythonic" code), etc are all way more important than, say, what does library X provide or what are the args to function Y.
Flash cards don't address the important parts of learning a programming language. And if you focus on the important parts, generally you'll get enough experience in the language that the things you'd want to memorize naturally just stick.
My 2c.
Idioms and design patterns are also very well suited to flash cards.
If I had to switch between perl, python, ruby, php, lua, javascript all the time, I would consider Anki to keep the rosetta stone data in memory, but not otherwise.
Stackoverflow and documentation serve to complement my Anki deck. I learn what I need and apply it to my project. After that, Anki cards get created.
Ultimately, I just see "stuff that you can google" as supplements to memory rather than replacements for it.
I think I'm struggling to see how flash cards would be an effective practice session. Why not just code something? Start a hobby project, contribute to something open source, etc. You'll use everything you'd rote memorize in context (and naturally start remembering it).
-------------------------------------------------- Front: Setup a flask view that requires basic authentication. Use the httpauth extension.
Back: How did it go? --------------------------------------------------
I have a lot of cards like this where I put the onus on myself to code up my own samplers.
My hobby is one where I'm playing around with Magic the Gathering data in JSON format. Over the past week, I designed a database, wrote SQLAlchemy scripts to populate it, and built up some RESTful web service views over it in Flask. It's been a lot of fun.
There'a a natural harmony where my performance on Anki reviews boosts my project work and vice versa. If there's a "key thing" to it all, it's that I have a project flow that works for me and makes me happy with the whole process.
My problem wasn't that I'd forget what the technical thing was, but that I'd just forget the vocabulary to talk about it.
Looking things up isn't that difficult, but it's much better to remember a term and say it than it is to halt a conversation while you look it up.
I've occasionally wondered if an Anki deck composed of Clojure idioms would be valuable. It would be dependent on paredit conventions, teaching "shapes" along with symbols.
The reason I started it was because I just kept forgetting the names of functions. I'd know exactly what I wanted the code to do, but then I would find myself not remembering the which word to invoke to do it. The flash cards have helped a lot there.
I'm not sure how you would fit an idiom into a flash card, but try it out and see how it goes.
There's syntax and there's idiomatic library usage.