Hynek Schlawack 5/15/2013

Know Your Models

Read Original

This technical article discusses the common confusion in web development between ORM (database) models and application models. It argues that directly using ORM models in views and controllers is a code smell, as it fails to abstract storage details. The author recommends creating separate application models with a clean API, effectively implementing the repository pattern to improve isolation, testability, and maintainability.

Know Your Models

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