Code Monkey home page Code Monkey logo

Comments (5)

sudomain avatar sudomain commented on September 24, 2024 3

One great feature of this pretty-printed JSON is that git recognizes changes to single fields in Anki, and commiting those changes to git results in really small changes, because only one single line is changed.

I realize I'm commenting on an closed issue 4 years later, but for informational purposes I'd like to point out that git commits are like a series of snapshots, rather than delta-based like other VCS

from crowdanki.

dayjaby avatar dayjaby commented on September 24, 2024

The exported JSON is not meant to be edited manually by "unqualified" users. So I don't understand why verbosity should be a necessary feature.

One great feature of this pretty-printed JSON is that git recognizes changes to single fields in Anki, and commiting those changes to git results in really small changes, because only one single line is changed.

If you want to see an example of what I mean: In this commit, I added a new note in Anki (the big green block at the top) and changed a few other single fields, which are those one-line updates at the bottom.

Of course your suggested FAQ format would result only in one-line updates as well, but such a hand-crafted format is always inferior to robust formats like JSON.

from crowdanki.

gavenkoa avatar gavenkoa commented on September 24, 2024

I forgot that JSON can be formatted in a similar way as other line-oriented formats. In that case it is possible to collaborate via DVCS.

from crowdanki.

gavenkoa avatar gavenkoa commented on September 24, 2024

FAQ format may not be restricted to single line.

Common approach is folding like a usage of leading space in https://tools.ietf.org/html/rfc2822#section-2.2.3

Another example is indentation used by YAML.

In any way you are not interested in human editable source format but in intermediate format and JSON can serve this purpose well.

from crowdanki.

Stvad avatar Stvad commented on September 24, 2024

Hey @gavenkoa. Thank you for your feedback! πŸ˜ƒ
You can find my email at my github profile page :).

As @dayjaby mentioned the main purpose here was not to provide a human readable format for users to create cards (though I kept that at the back of my mind and done some work towards enabling this type of cards creation), but the format that will allow people to effectively collaborate via tools like github. While doing most of the card editing inside of the Anki (and having all reach tools to do that at their disposal).

I also do handle updates of the notes with the same uuid without losing progress. You can look at the code to get more details on this one.
Thank you again for sharing your thoughts and perspective.

I'm looking forward to your feedback on using the plugin!

from crowdanki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.