What are the main advantages of MVC pattern over the old fashioned 3-layer pattern

The separation of concerns that’s quoted as being an advantage of MVC is actually also an advance of a 3-layer/3-tier system. There too, the business logic is independent and can be used from different presentation tiers. A main difference is that in classic MVC the model can have a reference back to the view. This … Read more

Onion archicecture dependencies in the same layer: Infrastructure and Web communicating

You are correct that you don’t want Infrastructure to depend on UI(Web), but I break that rule sometimes. I would think instead of IViewModelMapping, create IMapper with method Map(). Then, the interface can have implementations that might have to do with view model mapping, or maybe just regular mapping. Either way, that interface can be … Read more

Should the repository layer return data-transfer-objects (DTO)?

Short answer: No. Long answer: repository is responsible for turning persisted data back to entities (models) and vice versa. Model is a business Model representing a business entity. DTO on the other hand – while looks like Model – is concerned with transfer of the object between various environment and in essence is a transient … Read more

What is N-Tier architecture?

Wikipedia: In software engineering, multi-tier architecture (often referred to as n-tier architecture) is a client-server architecture in which, the presentation, the application processing and the data management are logically separate processes. For example, an application that uses middleware to service data requests between a user and a database employs multi-tier architecture. The most widespread use … Read more

techhipbettruvabetnorabahisbahis forumuedusedueduedusedueduedusedusedusedus