design of arrows from items

About: mentograhpy, because an arrow is an arrow is an arrow

This is pretty much a thinking out loud node.

Assume we devote a longtext field, called "arrows", in each item, serialize a matrix and store it there.  Then we can interpert that matrix from that item as a triple (subject,verb,object).  The subject, of course, is the item itself.  The (verb,object) is the name value pair from the matrix.  The arrows database field can be unserialized whenever the item is being read or written.  One place we can use this is to provide extra options for each item; for example: are the comments hidden, yes/no ?  

Wiki references for arrows:

Usually we want to know the value of some named object on the current item. We might write  [value comments hidden] and the system would evaluate that and display [value comments hidden = yes].  Or we could write [set comments hidden = yes]  as opposed to just showing comments hidden by saying [set comments hidden = ?].

One can go hog wild with the wiki referencing of arrows ... setting, quering, pathing to other nodes ... etc etc .  I'm gonna defer that to another time.

Reading and writing arrows from php:
  1. First read the matrix field when the item is retrieved.  We can assume that it will be unseralized into a matrix variable called "arrows".
    • arrows=unserialize(database field object)
  2. Now we can read or write arrows with commands like
    • x = arrows['comments hidden']
    • arrows['comments hidden'] = 'yes'
  3. When the item is written back into the database it is serialized.
    • arrowsOutput = serialize(arrows)
Is that simple enough?

Tags

  1. arrows
  2. design
  3. thinking out loud
  4. add
  5. hide comments

See Also

  1. Thought 80 oddities with 141 viewings related by tag "hide comments".
  2. Thought Why my trains of thought break ... with 124 viewings related by tag "ThinkingOutLoud".
  3. Thought Representation and Representing with 59 viewings related by tag "arrows".
  4. Thought Representing something changes my awareness of it with 42 viewings related by tag "thinking out loud".
  5. Thought What does thinking live mean? ... and where might it be going? with 23 viewings related by tag "thinking out loud".
  6. Thought Comparison: Left-Wing, Right-Wing By Issue with 3 viewings related by tag "thinking out loud".
  7. Thought Comment hiding plugin with 2 viewings related by tag "hide comments".
  8. Thought Schrodinger's Cat with 2 viewings related by tag "thinking out loud".
  9. Thought Local Fitnesse Wiki with 2 viewings related by tag "add".
  10. Thought Understanding Politics with 1 viewings related by tag "thinking out loud".
  11. Thought about: awesome screenshot - capture, annotate and share with 1 viewings related by tag "arrows".
  12. Thought items vs quads gives us forms with 0 viewings related by tag "design".
  13. Thought Song of the year with 0 viewings related by tag "thinking out loud".
  14. Thought Reference validation has holes in it with 0 viewings related by tag "add".
  15. Thought about: Encodable Industries AJAX File Uploader with 0 viewings related by tag "add".
  16. Thought rte for item needs convenient exit for consistency with 0 viewings related by tag "add".
  17. Thought bad url removes RTE contents with 0 viewings related by tag "add".
  18. Thought Ambiguous references with 0 viewings related by tag "arrows".
  19. Thought moving items from one group to another with 0 viewings related by tag "add".
  20. Thought Interactive aspects refer to nanotechnology with 0 viewings related by tag "design".
  21. Thought allow authors to sell access to items with 0 viewings related by tag "add".
  22. Thought minor edit option with 0 viewings related by tag "add".
  23. Thought test with 0 viewings related by tag "add".
  24. Thought [title (854)] with 0 viewings related by tag "design".
  25. Thought Tracking internal Israeli politics with 0 viewings related by tag "thinking out loud".
  26. Thought Who can post items at fastblogit ? with 0 viewings related by tag "add".
  27. Thought you can hide comments from the river and other rooms with 0 viewings related by tag "add".
  28. Thought the rte box should be exactly as wide as the item display with 0 viewings related by tag "add".
  29. Thought RTE change with 0 viewings related by tag "add".
  30. Thought syntax error on wiki references in the about box with 0 viewings related by tag "add".
  31. Thought repositioning gadgets on items with 0 viewings related by tag "hide comments".
  32. Thought I go with what happens - a qualia with 0 viewings related by tag "thinking out loud".
  33. Thought [title (19085)] with 0 viewings related by tag "thinking out loud".
  34. Thought A Cause & Effect Network with 0 viewings related by tag "thinking out loud".
  35. Thought tag thinking out loud with 0 viewings related by tag "thinking out loud".
  36. Thought a hierarchy of arrows (options) with 0 viewings related by tag "arrows".
  37. Thought ability to bookmark at del.icio.us direct from the edit screen with 0 viewings related by tag "add".
  38. Thought supply alternate add screens for some browsers with 0 viewings related by tag "add".
  39. Thought About box & title ideosyncracies with 0 viewings related by tag "add".
  40. Thought 'i wonder' if i'm going to go through ?... right arrow (?) with 0 viewings related by tag "add".
  41. Thought War crimes: Who's side am i on anyway? with 0 viewings related by tag "thinking out loud".
  42. Thought sanatize should remove any onclick actions for pasted buttons with 0 viewings related by tag "add".
  43. Thought Local Fitnesse Wiki with 0 viewings related by tag "add".