architectural-patterns

MediatR when and why I should use it? vs 2017 webapi [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-22 04:57:24
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . It might have been asked before but I cannot find even in the official site why I should use MediatR and what problems it solves? Is it because I can pass a single object in my constructor rather than a multitude of Interfaces? Is it a replacement or competitor of ServicesBus etc

MediatR when and why I should use it? vs 2017 webapi [closed]

你离开我真会死。 提交于 2020-01-22 04:57:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . It might have been asked before but I cannot find even in the official site why I should use MediatR and what problems it solves? Is it because I can pass a single object in my constructor rather than a multitude of Interfaces? Is it a replacement or competitor of ServicesBus etc

Query object implementation examples [closed]

此生再无相见时 提交于 2020-01-10 19:57:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Can anyone recommend good tutorial, implementation or sample code on Query object pattern usage, in C#(Java...)? I haven't found much with google. 回答1: With LINQ being almost everywhere, are you sure you need to reimplement the Query Object? Basically, you can treat all classes from System.Linq.Expressions to be

Factory Pattern where should this live in DDD?

一世执手 提交于 2019-12-22 03:55:31
问题 I have debated this for a while now and still have not come to a conclusion. While most examples I see have the factories code in the application layer I tend to think it should be in the domain layer. Reasons for this: I sometimes have initial validation done in my factory where I want all creation of objects to go through. I want this code to be used on all instantiates of my object. Sometimes an operation requires parameter information which feels unnatural to pass to a constructor. And a

Domain Model and Service Layer patterns in P of EAA

旧巷老猫 提交于 2019-12-20 10:39:12
问题 In Patterns of Enterprise Application Architecture, Martin Fowler talks about two patterns for organizing Domain Logic: Domain Model and Service Layer. The Domain Model pattern is the "pure OOP" approach, where models (those objects that are probably being looked up from the database using an ORM) contain business logic (albeit, probably only delegating to the logic in another class). The Service Layer pattern is like the Domain Model pattern, but with a thin layer in front of it containing

Is MVC a Design Pattern or Architectural pattern

佐手、 提交于 2019-12-18 10:02:34
问题 According to Sun and Msdn it is a design pattern. According to Wikipedia it is an architectural pattern In comparison to design patterns, architectural patterns are larger in scale. (Wikipedia - Architectural pattern) Or it is an architectural pattern that also has a design pattern ? Which one is true ? 回答1: MVC is more of an architectural pattern, but not for complete application. MVC mostly relates to the UI / interaction layer of an application. You're still going to need business logic

Pros and cons of the use of the DAO pattern [closed]

瘦欲@ 提交于 2019-12-17 22:27:15
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . As I mention in the title, I'm interested to know what you (as experienced developers) think about the use of the DAO pattern, specifically within a web application. What advantages have you found and what consequences of its use have you disliked? 回答1: The problems with DAOs

Passing business entities through layers in multi layer architecture

孤街醉人 提交于 2019-12-13 13:07:53
问题 Currently I'm working on a project exploiting multi layer architecture as described in Application Architecture Guide 2.0 with 5 layers(DAL, BLL, Facade, Presentation Layer and Common Layer). Here we have a Business Logic Layer which consists of Business Components and Business Entities(which are entities generated using an O/R Mapper), regularly we need this entities in our presentation layer for binding and presenting data to the user so we bubble this entities up to the Presentation Layer

Add status dialog to Qt project

旧街凉风 提交于 2019-12-13 05:22:36
问题 I am making open source file manager with the ability to encrypt and decrypt file/files according given password called Cryptofm. You can get the code from here - the first version. I want to add status dialog, representing loading screen with progress bar for Dialog::encAll() slot, after the progress bar reached max value to close the statusdialog. I found out that I must firstly recursively find the total size of all files in the folder(in TreeView context menu option Size) - slot Dialog:

Which files are responsible specifically for Model, View and Controller in struts2 MVC framework? [duplicate]

南笙酒味 提交于 2019-12-11 05:10:02
问题 This question already has answers here : Confusion in Struts MVC architecture (2 answers) Closed 2 years ago . My MVC concept is not clear. It seems me that .xml files are for Modeling ; .jsp files are for Viewing ; .java files are for Controlling . This is actually represents MVC system. I have the working basic concepts on MVC formula but I am not clear on which files are responsible specifically? 回答1: First of all, dive into Wikipedia. Your conception of MVC is wrong, and so is dividing