Sticking to the name as an unique identifier we will lose track of tiddler in every database system once you rename it.
Or should be treat the tiddler just as a collection of fields that we store in a particular entry of our DB
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e53f5ef2-225a-4f88-8483-3d094300a259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Danielo,
I faced the same problem with tiddlymap. When just renaming a tiddler, you have no information about what was the original title and what were the original fields. This makes it hard for any external db or even a plugin (like tiddlymap) to track which original object changed.
Your problem of "losing related attachments" is not nice but you have NO CHANCE to fix that as it is the tiddlywiki design and the same as link-breaking when changing the title.
I would love to see Tiddlywiki assign a unique (=repeatedly choose highly random value until unique) id to every tiddler it creates which cannot be changed by the user and is hidden (like the e.g. the "draft.of" field we cannot see or the "created" field that cannot be modified). So we can use it for db operations or other. Tiddlywiki itself does not need to use this id at all but it is nice for us to have it.
Or should be treat the tiddler just as a collection of fields that we store in a particular entry of our DB
Then you could as well use the title
Just two notes, to dismiss if nothing else:I believe the intention is to introduce version handling for tiddlers. I assume this would mean saving copies of old versions(?)
When we get the TWederation set up, unique tiddler IDs might become of general interest.
I do have a chance! please, don't tell me NO CHANCE, I get depressed easily :P You were my inspiration, your plugin is my inspiration! Reading this is impossible coming from you has more meaning than anyone else!
Exactly. TW does not need to change, it can still working the same, just assign an unique ID, even if you don't use it!
Maybe a plugin for this can be created. A good plugin, focused on that task, only adding an unique ID to every tiddler. Then every plugin that needs an unique ID can ask the user to include this plugin.
This have several advantages, one of them is that your plugin does not need to take care of ID generation. The other advantage is, if every plugin adds an unique id we will end with tiddlers with one unique id per plugin,a central place for IDs solves this.
Or should be treat the tiddler just as a collection of fields that we store in a particular entry of our DB
Then you could as well use the title
I don't understand this last answer. Why should I use the title? That is indeed the problem!
Sorry, sorry. I didn't mean to say no chance, I just wanted to say you need to be prepared to develop some workarounds :) Nothing is impossible it is just a matter of creativity and we know you are one of the creative guys around ;
Yes, good point! TiddlyMap already has this build in and I would really like to outsource it as plugin but my problem so far has been that I am afraid of telling the user "tiddlymap is easy to install, you just need to drag and drop 100 separate plugins".
Exactly what I am thinking. Sorry, but I am very busy at the moment but as soon a I find the time, I'll create a plugin from the code I am already using at tiddlymap and write you a message.
Sorry, this is a misunderstanding. I thought you want to use the tiddler fields as "multi attribute primary keys" (also known as combined primary key). Say "prename" + "surname" + "adress" = primary key. So just ignore this part of my answer.
I just realized that this has another problem: when syncing several databases of different wikis, we will need an unique name for every tiddler, which is not always possible.
Your problem of "losing related attachments" is not nice but you have NO CHANCE to fix that as it is the tiddlywiki design and the same as link-breaking when changing the title. I think the only reason tiddlywiki preferred titles as primary key over ids is because in contrast to a db the user is directly involved and linking titles is easier to handle than linking ids or adding a layer that abstracts the id.
I do have a chance! please, don't tell me NO CHANCE, I get depressed easily :P
When we get the TWederation set up, unique tiddler IDs might become of general interest.This is something that confuses me. Jeremy has expressed his interest on federation, but all the comments and attitudes of an important part of the community are against the unique IDs. I don't know how do they plan to handle this.
How about this for a work-around: When a tiddler is cloned, a ClonedFrom field is created. When you want to change the title of a tiddler, clone it then change give it a new name.
There could be a "refactor links" plugin which could seek out cloned tiddlers, references from the tiddlers being cloned, then alter links. The cloned tiddler could be given a "1" in a isDead field.
This work-flow would emphasise cloning and the self-replicating aspects of TW. It promotes a cautious approach where tiddlers are not deleted: if you want to change it clone it! I have sometimes deleted a tiddler and really wished there was a undo button. Cloning is also more closely related to "forking" in GitHub: its more of the zeitgeist than deleting...
It might be worth considering changing the delete buttons function: rather than deleting it, it could just be demoted in the evolution of the TiddlyWiki.
Delete could also be a cloning function: instead of it being removed from the store forever, a new tiddler could be created with a tittle appended with "deleted", the tag "isDead" and a field "clonedFrom". "isDead" tiddlers could then be hidden, like shadow tiddlers.
(The isDead technique was shown to me by a friend who developed his own "fractal database" method. He was inspired by attempting to model Stafford Beers recursive Viable System Model. Given that names of things are subjective and socially constructed (from some philosophical standpoints) emphasising the process and relationships hidden behind the name can be seen as more important.
As a user, I want to create new tiddlers and give them whatever name I want. I want to be able to track the development of my idea from "original" though various "clones". When we start to use words like "parent" and "child" we are adopting a metaphor related to sexual reproduction – subtly different from "cloning": its the difference between a plant grown from a seed produced from a pollinated flower and one produced from a cutting. TW is all about growing from cuttings..... TW is a quine, a self replicating program. I think this fact is a sleeping giant in our thinking about branding
I think this would be a strategy for branding and marketing. Bringing the philosophy related to the underlying computer science and the language we use to create tiddlywikis and knowledge closer together will enable cohesive devel.
We could consider the wiki and the quine as a muse and metaphor for some of the issues related to knowledge creation identified by Quine and elaborated on by Hofstader in GEB
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6ff8f85c-80de-4cb6-99cc-f530739c8dc7%40googlegroups.com.
I believe it would also be advantageous to give each tiddler a unique ID via a plugin (could be a hash of the TW ID and the title of the tiddler)
This could be implemented if each tiddler were allocated a hex string as an ID which marked it's position in the TOC -- 16 branches at each level (I suppose two hex characters might be used for the first level -- allowing 256 branches at the root level.)
Murphy's law is an adage or epigram that is typically stated as: Anything that can go wrong, will go wrong.
I think, the important part here is. Users will always face tiddler names only. .. you can easily prefix them.
IMO we should go with an UUID V4 as a tiddler ID.
Felix has an algorithm in his tiddlymap library. ... IMO we should make a pull request for the core.
It is very, very unlikely, that Jeremy will change this. ... but it doesn't prevent us from adding an UUID field with plugins.
We as plugin authors should just find a common path. ..
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/83d128aa-629b-4573-9880-1349bc3eede7%40googlegroups.com.
Hello Jeremy,
I don't know why every time someone talks about UIDS everyone thinks automatically in titles. I'm not talking about using this IDS as titles, neither to identify a tiddler in any way. We are just talking about assigning one unique ID to each tiddler. Why is this so problematic? Why everyone thinks that we want to kill the current title mechanism? It's not about that.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f59c8696-374f-4034-ae95-bf720d03b244%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I understand that you are suggesting a new UUID field that is independent of the title field. I'm responding that there is already a unique ID field for tiddlers; it's pointlessly expensive to enforce two unique IDs.
-mario
Felix has an algorithm in his tiddlymap library. ... IMO we should make a pull request for the core.