Friday, January 23, 2009

How reading leads to deep Introspection

I love to read.. really it's what I am known for, having a book with me at all times. Part of it is that I reread books that I found expectational good, every few years; they always seems to have a new effect on me.


Not long ago I found myself reading Gödel, Escher, Bach, once more.. The sheer physical weight of this book lead to me find my copy of Godel's Proof. Just to have something lighter to read at lunch. I found GEB's explanation and exploration of Godel's Proof friendlier in comparison. Sometime I will have to get back to finishing GEB once more..


But back to Godel's Proof. I had a thought, that Godel's system is just as convoluted as when you want to write Introspective programming code.


Over the last few weeks I have had thought after thought on how I would want to have code describe things about it's self.


In the Modal Control View pattern, a view is just an description of some data. I have been looking at importing CSV data into Mono using File Helpers library. It uses attributes to describe how fields in the CSV file relate to an object. In effect these attributes describe a view of the data.


Another idea is for Operation overloads. Really these are descriptions of how to convert types. Lastly for data bindings, these are descriptions on how to update.


The problem with using attributes is they are not portable. I don't believe that I can define a group of them for say an interface or something, then apply them to a object.


I will have to investigate more.. Someone has to have thought of this.

No comments:

Post a Comment