DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • Observability Architecture: Financial Payments Introduction
  • How to LINQ Between Java and SQL With JPAStreamer

Trending

  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • Observability Architecture: Financial Payments Introduction
  • How to LINQ Between Java and SQL With JPAStreamer

Limit your abstractions: Analyzing a DDD application

Oren Eini user avatar by
Oren Eini
·
Feb. 05, 12 · Interview
Like (0)
Save
Tweet
Share
5.97K Views

Join the DZone community and get the full member experience.

Join For Free

abstractions have a cost. you should limit them. that seems like an obvious statement, but in a recent discussion i had, i realized that i didn’t articulate things in quite the proper way before.

let me see if i can explain better now. one of the problems in typical applications is that we don’t really think before we introduce abstractions. for the purpose of this discussion, an abstraction in an interface. let us take a look at a sample ddd application.

nitpicker corner: no, i am not saying avoid using interfaces.


i took all the interesting interfaces out of the application, you can see them here:

take a look at the interfaces below. they bother me. they bother me because each of them represent an abstraction that is specific for a particular problem. in other words, it represent an non-abstracted abstraction, if that make any sense.

as i said, this is taken a ddd sample application . it isn’t a big one (and no, i didn’t review the actual code to see if it is a good one), but the interfaces that it has reveal a common problem, namely, interface explosion, or over abstraction. i removed any infrastructure / persistence stuff that was in the app, so you are looking just at the business interfaces, mind.

the problem is that the way this application is structured, it is highly procedural and had to maintain.

huh?! i can hear you say, procedural? this is a ddd app, just look at the names, we have services and facades and events and… those are all good things . this design is pretty much text book. how can you say that this design is hard to maintain?

i’ll answer this question (and propose answers) in this series of posts. in the meantime, feel free to look at the code (it is java, in its origin, and i simply modified it to c# for easier working) and make your own conclusions.

source: http://ayende.com/blog/153889/limit-your-abstractions-analyzing-a-ddd-application





image



application Abstraction (computer science)

Opinions expressed by DZone contributors are their own.

Trending

  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)
  • Observability Architecture: Financial Payments Introduction
  • How to LINQ Between Java and SQL With JPAStreamer

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: