On Thursday, May 13, 2021 at 1:31:22 PM UTC+2 si wrote: > >>> Jeremy considers data tiddlers as a mistake, so he doesn't want to add > more complexity to the core, to give it better support. If we have better > support in the core, more users will use it, which makes it harder to get > rid of it. > > @PMario Why does he consider data tiddlers a mistake? This seems related > to my recent post here: What's the point of JSON tiddlers? > <https://groups.google.com/g/tiddlywiki/c/skXcOsf_R94> >
That's not so easy to explain, but I'll try. It's part of the "selective refresh" mechanism of TW. ... "Selective refresh" means, that widgets or parts of a widget are only redrawn, if their parameters have been changed. Eg: You have 2 checkboxes, that are connected to the same data-tiddler, which may be seen as an advantage. cb1: <$checkbox tiddler="test" index=1 checked="selected" unchecked="" default=""> Selected?</$checkbox> cb2: <$checkbox tiddler="test" index=2 checked="selected" unchecked="" default=""> Selected?</$checkbox> So with this setup, whenever you change the "selected / index" status of cb1, the core also has to recalculate the "selected" status of cb2, because the tiddler "test" has been changed. ... This wouldn't be the case if there would be 2 different tiddlers. You may say, that's not a problem, because it's convenient. ... Yes it is convenient and for this example it isn't a problem. ... BUT If you have several 100 indexes, that are "connected" to completely different UI elements, it starts to be a problem: You will have to redraw a lot of elements, that don't really need it. -------- I also think, that using data-tiddlers as "configuration" and / or "lookup-tiddlers" that don't control visual elements, is convenient. And it won't go away anyway. hope that helps mario -- 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/1de0941f-227f-4624-8ebb-ba139c9ad710n%40googlegroups.com.

