Oliver Drotbohm 8/11/2008

Validating domain objects

Read Original

The article explores the separation of validation logic between domain objects and Data Transfer Objects (DTOs) in software architecture. It argues that validation is often client-specific, using examples like password confirmation and email uniqueness during user registration. The author advocates for keeping domain objects restrictive and using external validation classes for DTOs to enable cleaner error handling and client-specific views.

Validating domain objects

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week