Responsibility-Driven Design

Last updated Apr 16th, 2022
Responsibility-Driven Design is the influential object-oriented design method that presents an effective way to turn requirements into object-oriented software.

🌱 This blog post hasn't fully bloomed. It's very likely to change over the next little while.

“Understanding responsibilities is key to good object-oriented design” — Martin Fowler

Do you struggle with object-oriented programming? Does it sometimes feel like it's overly complex for no reason? When you're writing object-oriented code, do you sometimes feel like you're slowly watching it turn into a spaghetti mess? Do you sometimes feel confused as to when you should create new classes? Do you feel like it might be better to just use functions instead?

What if I told you that there's more to building software with objects than just classes, inheritance, polymorphism and encapsulation?

What if I told you that there's a design method - a way of turning requirements into object-oriented designs - that actually

And what if I told you that it was the programming world's most influentual design method (that all the expert object designers are using) that you've likely never heard about.

About Responsibility-Driven Design (RDD)

Allow me to introduce you to Responsibility Driven Design (RDD): the programming world’s most influential, effective, and intentional approach to designing object-oriented software. I know, big claim. But it’s true.

Responsibility-Driven Design book

My copy of the legendary Object Design book. My second favourite blue programming book. This book is so rare that it's nearly $200 USD nowadays!

RDD, originally invented by Rebecca Wirfs-Brock in the late 80s and modernized in her 2002 book titled Object Design is a learnable and repeatable design method for building object-oriented applications.

Where most of us today write and think in procedural style code using classes and functions because it's often what the languages dictate, Responsibility-Driven Design presents an approach to actually design objects with purpose and intention.

Roles, responsibilities, collaborations

Object software is neighborhoods of collaborating objects which (polymorphically) come and go, each filling in for roles with related responsibilities.

  • Role: A collection of related responsibilities
  • Resoponsibility: An obligation to do (some task/behavior) or know something (some data)
  • Collaboration: An interaction of objects or roles (or both)

...

To be continued...

Check out the wikipedia page on Responsibility-Driven Design and feel to leave comments or questions for when I finish this post.

Highly recommend reading this page and watching this talk.



Discussion

Liked this? Sing it loud and proud 👨‍🎤.


4 Comments

Submit
Giovanni
4 months ago

Hi Khalil, nice outline! Regarding your RDD-claim, I fully agree.

Gabe
4 months ago

Finish it :D :D

pythaac
3 months ago

Hi, I'm reading your OOD posts. Looking forward this post!


Stay in touch!



About the author

Khalil Stemmler,
Developer Advocate @ Apollo GraphQL ⚡

Khalil is a software developer, writer, and musician. He frequently publishes articles about Domain-Driven Design, software design and Advanced TypeScript & Node.js best practices for large-scale applications.



View more in Object-Oriented Design



You may also enjoy...

A few more related articles

Object Stereotypes
The six object stereotypes act as building blocks - stereotypical elements - of any design.
Non-Functional Requirements (with Examples)
Non-functional requirements are quality attributes that describe how the system should be. They judge the system as a whole based ...
What are Dependencies, Composition, Delegation, and Aggregation in Object-Oriented Programming?
The four principles of object-oriented programming (abstraction, inheritance, encapsulation, and polymorphism) are features that -...
4 Principles of Object-Oriented Programming
The four principles of object-oriented programming (abstraction, inheritance, encapsulation, and polymorphism) are features that -...

Want to be notified when new content comes out?

Join 15000+ other developers learning about Domain-Driven Design and Enterprise Node.js.

I won't spam ya. 🖖 Unsubscribe anytime.

Get updates