Monday, July 16, 2007

Intention

Jared has a short sweet example of an "intention revealing interface" and why it's good.

To understand more about the concept, see Domain Driven Design. Basically, Evans says that "All tricky mechanism should be encapsulated behind abstract interfaces that speak in terms of intentions, rather than means." This is a core habit that enables people to write objects rather than just a bunch more procedural code.

1 Comments:

Blogger Richard said...

I think languages like Ruby and Python raise allows this to happen more freely.

It's a different mind set to grasp than say pointer-based/typed-memory oriented languages like C and friends...

2:32 PM  

Post a Comment

Links to this post:

Create a Link

<< Home