Architecting ASP.NET Core Applications: Best Practices Flashcards Preview

.NET / C# > Architecting ASP.NET Core Applications: Best Practices > Flashcards

Flashcards in Architecting ASP.NET Core Applications: Best Practices Deck (20)
Loading flashcards...
1

What is dependency inversion in soliD design principles?

Means that objects depends on interfaces instead of real implementations.

2

What is the two main benefits of dependency inversion?

loosely-coupled applications and testable software.

3

What is separation of concerns in Solid design principles?

Means separating software in different sections or modules which each one addresses a specific concern.

4

What is the term "concern" in software architecture?

is a larger computational problem that can't be solved by a single class.

5

What is the DRY software dev principle?

don't repeat yourself... meaning less code repetition.

6

How is persistence ignorance is achieved?

Via POCOs - domain classes shouldn't be impacted by how they're persisted.

7

What is the all-in-one architecture? What is an example of that?

All files, controllers, views (and everything else) are in the same (large) project. A MVC project.

8

Can an all-in-one project be difficult to maintain?

Yes, can get very difficult since it is too easy to tight couple stuff.

9

What are the 4 benefits of layered architecture?

1 - Is split according to concerns (modules);
2 - Promote reuse
3 - Easier to maintain
4 - Is pluggable.

10

What are the 3 layers of a typical layered architecture?

Presentation, Business logic and data access layers.

11

What is the 2 main disadvantages of layered architecture ?

Still coupling between layers and behaves as a single application.

12

What is clean architecture (architecture style)? Was it created in 2012?

Is a variation of hexagonal and onion architectures styles. yes

13

What is clean architecture based on?

In design principles (including SOLID)

14

What is the 2 main benefit of clean architecture?

create maintainable and testable applications.

15

What are the 3 circular layers of clean architecture?

Interface Entities, application core, Infrastructure/Presentation

16

Which kind of code goes to the core project?

Entities, Interfaces (implemented later on in the Core and in the Infrastructure, Services and Exceptions).

17

What is ultimately not permitted in the core project?

ef core or any presentation dependency (aka installed packages)

18

Which kind of code goes to the infrastructure project?

Data access (ef core), logging, identity (auth), file access

19

Which kind of code goes to the UI project? Can API go here?

MVC, Razor, middleware, filters. Yes, API also goes here.

20

What are the main 3 benefits of clean architecture?

Independent UI, no knowledge of used DB, testable and maintainable.