On Wed, May 12, 2021 at 5:20 PM si <[email protected]> wrote:

> This question stems from a post I made here
> <https://groups.google.com/g/tiddlywiki/c/60IxH2QoBDY/m/kYWGzpIRBgAJ>,
> but I'm also curious about the more general question so I thought I'd make
> a separate post.
>
> *General question:*
>
> I can't think of anything that you can do with JSON tiddlers that you
> can't do with normal tiddlers, so I'm curious where it would make more
> sense to use JSON?
>

I think this is pretty correct! I even think the vice versa!



>
> Actually I can think of one thing: tiddler fields have character
> restrictions. But this doesn't seem like a big deal. It seems outweighed by
> the fact that we have much better tools for manipulating normal tiddlers.
>
> *Specific case:*
>
> My specific case that triggered this question was that I created a button
> to store "history" for particular tiddlers. The button essentially creates
> a clone of the current tiddler with the title
> <currentTiddler>/history/<timestamp>. Since I anticipate creating a lot
> of "history-tiddlers", it occurred to me that another approach would be to
> just store all the history data for a particular tiddler in a single JSON
> tiddler.
>
> This feels a little neater, but more specifically I wondered if there were
> any clear advantages to either approach? Will storing all history for a
> tiddler in a single JSON tiddler be less of a drain on performance than
> using lots of individual tiddlers?
>

I cannot judge about performance! but non-dataTiddler has many more
supports from the core while comparing with dataTiddler.
But as you said, sometimes I store data like a yes/no or definitions of
words or things one line  task/todo, in such cases I do not like to have
one tiddler per item and mess the Tiddlywiki!
Then when you do everything you see those tiddlers (I know you can use $:/
namespace...)
I use dataTiddler as a permanent object with many variables quite a lot and
they share the same namespace and this is quite handy and useful for
debugging...

So, in my opinion each has its own use case!




> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/5b2d5326-b0ef-4723-8a33-8597f92a8c99n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/5b2d5326-b0ef-4723-8a33-8597f92a8c99n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMB%3DJyvN1PbFUtGJVFZwWnmwewyYumU75qN4YQ1NUOnd0A%40mail.gmail.com.

Reply via email to