{"id":171,"date":"2009-07-02T12:29:32","date_gmt":"2009-07-02T12:29:32","guid":{"rendered":"http:\/\/andypalmer.com\/?p=171"},"modified":"2009-07-02T15:32:43","modified_gmt":"2009-07-02T15:32:43","slug":"tiny-types","status":"publish","type":"post","link":"https:\/\/andypalmer.com\/2009\/07\/tiny-types\/","title":{"rendered":"Tiny Types"},"content":{"rendered":"
Mark Needham’s post on micro types<\/a> sparked an idea in my head that recently came to fruition.
\nI was pondering on the Narrative Fixture<\/a> code, and the fact that, although most of the internals are sensibly typed objects, at the FitNesse<\/a> layer, we do a lot of passing of strings.
\nThe idea (at least, my interpretation) with Tiny Types is that the string obviously means something, and that we can probably classify what that meaning is (we have a sensibly named variable for it, after all) , and so why not convert it to that meaningful thing as soon as possible.
\nThis has the nice effect of making some vague things (such as typing on collections) much more explicit.<\/p>\n