A sample application illustrating the Data Context Interaction paradigm (in Ruby)
Ruby JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
public
script
spec
vendor init commit Jun 4, 2012
.gitignore
Gemfile
Gemfile.lock
README.md
README.rdoc
Rakefile
config.ru

README.md

Why DCI?

DCI (Data Context Interaction) is a new way to look at object-oriented programming. Instead of focusing on individual objects, the DCI paradigm focuses on communication between objects and makes it explicit. It improves the readability of the code, which helps programmers to reason about their programs.

I'd been reading blogs posts and watching talks about DCI for a long time and I felt that it's time to try it out. I found that most material related to DCI is theoretical. There were a few books, a dozen of blog posts, and several presentations that could give you a good picture of what DCI is. However, I could not find any "real world" examples of actually using it. That's why I decided to write a simple application showing how to implement DCI in Ruby.

Like what?

Like the following projects:

Ruby/Rails

The application is a Rails project. There are a few reasons for it:

  • All the DCI concepts can be implemented in Ruby. It doesn’t feel clunky or alien.
  • Ruby is concise and readable. Even if you are a C# programmer, you should be able to understand what is going on.
  • There is more interest in DCI in the Ruby community than in any other community.

Developers

The application has been developed by Victor Savkin and Rinaldi Fonseca.

Read More

Read more about DCI and the project.