Notes + extra test for EPO workshop and YAPC::EU 2009
[catagits/catbook-code.git] / NOTES
1 Notes:
2
3 Snippet Store:
4 * In memory RS-like thing (i.e. a cache with an RS like interface)
5 * Snippets are just hashes: { text => 'foo' }
6
7 * create(text => $text): make a new snippet.
8 * find(id): get a snippet 
9
10 Snippet:
11
12 * has id and text accessors
13 * knows if it has been translated
14 * and how to translate itself.
15
16 Translator:
17 * A text -> text transformer
18 * Work done by translation drivers
19 * Queryable translations (can I go to X?)
20
21 Translation Driver:
22 * Has one method, 'translate' that takes a string and returns the translated one
23
24
25 Practical sessions:
26
27 * Snippets and Translators
28 *
29
30 Other Notes:
31 * Not sure the point of Test::Moose, I often just call the accessor and
32   check that it behaves right, I don't really care at the test level if
33   this is an accessor or some vodoo sacrifice so long as it works how i
34   want.
35
36