Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
cavalle
big-models
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Home
Jump to bottom
Edit
New page
cavalle edited this page
Feb 24, 2013
·
37 revisions
#big-models
Topics
Rails vs OOP
–
#rails-vs-oop
SOLID Principles
–
#solid
#srp
Data vs Responsibility
–
#data-centric
#responsibility-centric
Ceremony vs Essence
–
#ceremony-vs-essence
The Cost of Indirection
–
#indirection
Cohesion
–
#cohesion
Testability
–
#testability
Rails is a Detail
–
#rais-is-a-detail
Patterns
Service Objects
External Interfaces
Responsibility Objects
Query Objects
Form Objects
Policy Objects
Role Objects
Use-Case Objects
Service Layer
Concerns
Not–so–skinny Controllers
PORO Domain Objects
Repositories
Presenter Objects
Value Objects
Observers
Callbacks
Virtual Attributes
Architectures
DCI
Hexagonal
Taxonomies
Does the object represent a real-world concept?
Yes => Model
No => Service
Who calls the object?
The Controller (i.e outside the domain layer)
Controllers not allowed to models?
=>
Service Layer
Another domain object (model or service)
How objects relate to each other?
Collaboration (Services)
Composition
Aggregation / Association
Dependency
Augmentation
Extension (Static, Dynamic) (Concerns, DCI Roles)
Decoration (Presenters, DCI Roles)
Wiki pages
Pages
18
Loading
Home
Topics
Patterns
Architectures
Taxonomies
Does the object represent a real-world concept?
Who calls the object?
How objects relate to each other?
Loading
Concerns
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
DCI
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Decorator Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
External interfaces
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Form Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Not–so–skinny Controllers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Policy Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PORO Domain Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Presenter Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Query Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Responsibility objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Role objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Service layer
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Service Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Use case objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Value Objects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Virtual Attributes
Uh oh!
There was an error while loading.
Please reload this page
.
Show 3 more pages…
Add a custom sidebar
Clone this wiki locally
You can’t perform that action at this time.