Skip to content
hzhou edited this page Mar 9, 2012 · 20 revisions

MyDef is a macro framework to enable us to write code in block indented style.

Philosophy

wheels

Think about the term "wheel" in the phrase "Do not reinvent the wheel".

One could interpret the wheel as an object such as one with steel spooks and rubber rims. Or one could interpret the wheel as an idea that refers to a round object with an axis that rolls.

The idea is often much less complex than the physical object instance, yet much more important.

To reuse code by referring/including a library is like to copy a physical wheel (think about the duplicator in Star Trek).

Or we could just learn the idea of certain code and then be able to create a variety of code guided by the same idea -- sometime in a very different language and context.

With MyDef, we would like to encourage communicating and reusing code at idea level, rather than at the code level.

##Examples The best way to describe how it works is through examples. Following are some demonstrations. We will keep adding them.

Clone this wiki locally