Top "Separation-of-concerns" questions

Design principle that comprises the process of separating a computer program into distinct features that overlap in functionality as little as possible.

Import multiple Angular components via module

My Angular project is growing so I want to keep my project clean. I have one Angular component which depends …

angular module components separation-of-concerns
How to map View Model back to Domain Model in a POST action?

Every article found in the Internet on using ViewModels and utilizing Automapper gives the guidelines of the "Controller -> …

asp.net-mvc domain-driven-design viewmodel automapper separation-of-concerns
RSpec in Rails: How to skip a before_filter?

I am trying to test my controller and maintain separation of concerns. The first concern is "Who is able to …

ruby-on-rails rspec separation-of-concerns before-filter
Accessing Database Entities from Controller

tl;dr In a good design. Should accessing the database be handled in a separate business logic layer (in an …

c# asp.net-mvc entity-framework controller separation-of-concerns
Ruby On Rails - Using concerns in controllers

Possible Noob Warning: New to RoR I am trying to use concerns in RoR. Right now I just have a …

ruby-on-rails ruby web separation-of-concerns
Preferred way to combine PHP and HTML?

I learned PHP by hacking away at phpBB2, even submitting a few mods to their database, which others downloaded and …

php html templates separation-of-concerns
Where to convert a DTO to ViewModel?

I've inherited an MVC2 project using a pretty standard and decently well kept DDD pattern. I've been doing a lot …

asp.net-mvc domain-driven-design viewmodel dto separation-of-concerns
MVC: Data Models and View Models

I've read some MVC advice in the past regarding models stating that you should not reuse the same model objects …

model-view-controller model separation-of-concerns
Rails: Including a Concern with a constant within a Concern

I have concern in which I store constants: module Group::Constants extend ActiveSupport::Concern MEMBERSHIP_STATUSES = %w(accepted invited requested …

ruby-on-rails separation-of-concerns