Chapter 4. Isolating The Domain Flashcards

1
Q

With a layering approach, any elements of a layer depends only on other elements in __________ or on elements of the layers _________ it.

A

in the same layer
the layers underneath it

DDD, p. 70

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

What are the four layers in an application?

A

UI or presentation layer
Application layer
Domain layer or model layer
Infrastructure layer

DDD, p. 70

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

The external user of a system might be a human or ___________.

A

Another computer system.

DDD, p. 70

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

The application layer ________ tasks and _________ work.

A

coordinates tasks
delegates work.
If an application needs to send an email, the application layer would request the transmission of the message.

DDD, p. 70

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

The UI layer does two things:
Shows _______ to the user
______ user’s commands

A

Shows information to the user
Interprets user’s commands

DDD, p. 70

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

The domain/model layer captures what four things about the business?

A

concepts
information
rules
state

DDD, p. 70

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

The infrastructure layer provides ________ technical capabilities that support ______ layers.

A

generic
higher
eg. Message sending, persistence, drawing widgets, etc.

DDD, p. 70

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

The grandfather of connecting the UI to the application and domain layers is:

A

Model-view-controller (MVC)

DDD, p. 73

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

T/F: The infrastructure layer should have knowledge of the domain layer.

A

False. It contains technical capabilities such a sending an email.

DDD, p. 70

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

Technical capabilities in the infrastructure layer most often offered as ________.

A

Services.

DDD, p. 73

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

What is another term for domain layer?

A

The model layer (as in model view controller).

DDD, p. 70

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

DDD pays off best for what type of project?

A

Ambitious

DDD, p. 76-77

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

What 4 characteristics define the Smart UI anti-pattern?

A
  1. Business logic in the UI
  2. Small functions
  3. Separate functions in separate UIs
  4. Use relational database as shared repository of the data

DDD, p. 77

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

What does 4GL stand for?

A

Fourth generation language

Mentioned on DDD, p. 77

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

What are the names of some 4GLs?

A

Cold fusion
Perk, python, ruby
SQL
SAS / SPSS

(from online source)

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

T/F The application layer does not contain business rules.

A

True

DDD, p.70

16
Q

What is the difference between 3GL and 4GL?

A

3GL is procedural….you tell the computer how to do something …steps to take. 4GL you tell the computer what results you want (eg, SQL).

(from online source)

17
Q

T/F The application layer cannot contain a state reflecting the progress of a task.

A

False

DDD, p.70