codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.1k stars 220 forks source link

Export Chosen Solution to Anki Card #2205

Open t-cadet opened 4 years ago

t-cadet commented 4 years ago

Context

Solving the easier Kata on Codewars is a great way lo learn a programming language, and creating Anki cards when I learn new syntax or tricks helps me memorize them faster (Anki is a Space Repetition System).

Describe the solution you'd like

I would like Codewars to integrate with Anki and allow to export a chosen solution (my own or other's) to an Anki card in a given deck. The front of the card would be the Kata statement and the starting code snippet; the back would be the chosen solution.

Here is what it might look like: Card Front (N.B. here I modified the Kata statement to suit my own needs) card front Card Back card back

┆Issue is synchronized with this Clickup by Unito

Blind4Basics commented 4 years ago

Is this something like a private collection with tags on the solutions you store, in addition to the name of the kata, for example?

t-cadet commented 4 years ago

As far as I know collections do not have a SRS system so this would not be enough.

The way Anki works is it shows you the front of a card, then you have to guess the back of the card. If you guessed it right Anki will show you that card again in, say, 10 days. If you guessed it wrong it will show you the card again the next day. The more you get a card right the more the intervals increase. This helps you remember stuff efficiently by focusing your efforts on what you have not yet mastered.

Blind4Basics commented 4 years ago

Mmmh, ok. Interesting... Tho a question raises: how would the correctness of the answer be evaluated?

This feels like a training routine automatic suggestion, actually (but customised). Because the simplest way to know if you got the right answer is actually to solve the related kata again.

hobovsky commented 4 years ago

I think I know this method, but under the (probably proprietary) name of SuperMemo, and used it to learn vocabulary of foreign languages. Correctness of the answer is evaluated by trainee themselves, you rate yourself how good your answer was and system reschedules the question based on this (and many other) stat.

It sounds somewhat similar to "Practice and Repeat" training mode, except the algorithm used by CW trainer is probably not as sophisticated, and I would actually doubt in its usability for implementing this approach :( But sounds like a very nice idea.

The other problem is that I am not really sure if approach used by Anki is feasible for training of programming. It can help with "vocabulary"-like stuff, like available types, classes, methods, syntax elements, but I am not sure if/how it would work for solving actual problems, where more than one approach is possible. It could cover white kata in some way, but not all, and not much more.

kazk commented 4 years ago

We won't support exporting to Anki Card, but it might be interesting to have a kata suggestion mode using spaced repetition.

I think it'll make more sense for more simple challenges and quizzes though.