Know Your Models
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser