Conceptual Flashcards

1
Q

What is dependency injection? What problem does it solve?

A

Dependency injection (DI) is the concept in which objects get other required objects from outside. It helps to decouple.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name three types of dependency injection.

A

1) constructor injection
2) method injection
3) Property injection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the DRY principle?

A

DRY stands for Don’t Repeat Yourself. In Java, it means don’t write the same code repeatedly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do we mean by “separation of concerns”? Why is it important? Is it?

A

is a design principle for separating a computer program into distinct sections. Each section addresses a separate concern, a set of information that affects the code of a computer program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are common logical application layers?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the MVC pattern? In which layers do we implement it?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a design pattern? Name one other than MVC.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly