Open andreasdieryck opened 6 years ago
my opinion: it adds too much complexity and is not really prone to future evolutions.
For now it can see two solutions that have different advantages:
["tag1", "tag2,tag3"]
which means: tag1 OR (tag2 AND tag3)
1. Current working principles with a single tag
As defined in issues #10 and #11,
Tags
is a property that we use to:a. Attributing a Tag
At the moment, I can allocate a Tag in a file as follows:
In the above instance, I allocate the tag
"ResumeActivity"
because this file is specifically designed for situations when the user relaunches an app.b. Calling for a file with a given
Files with tags will be stored in a specific place. When I need a file with the tag
"ResumeActivty"
, I should follow this example:Here, at the end of my sequence, another sequence that has the tag
"ResumeActivity"
will be called (randomly).2. Issues: Tags inclusivity/exclusivity
a. Issue with tags allocation
The issue that will quickly arise is the following, I can allocate several tags to a file. Example:
Doing so can have two meanings:
b. Issue with calling tags
Similarly, when I call for a tag, I can call for several tags at a time. Example:
Again, doing so can have two significations:
3. Solutions?
There are two ways of solving this issue:
4. A solution: distinguishing between inclusive and exclusive tags
One way to avoid the confusion is to explicitly declare whether we would like an association of tags to be exclusively used as one, or not.
a. Declaring an exclusivity
Example 1: I want my file to be used ONLY when the user comes back on the app AND we want to show him a joke
This sequence should thus only be used when it is called as follows:
b. Allocating tags without a given association
Example 2: I want my file to be used EITHER as a joke OR as a story about baguettes
This sequence should thus only be used when it is called as follows:
c. Multiple use cases
Example 3: I want my file to be used in both cases, i.e. it can be used for a given couple of tags or a set of single tags as well
What do you think about this guys?