Chapter 3 - Class Libraries Flashcards

1
Q

Why collection classes?

A

programming languages provide only limited functionality - additional functionality implemented as libraries

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

what are advantages of using class libraries?

A

less in-house development, less testing effort and broader test coverage, less maintenance and improvements for free

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

what are the rules of design?

A

using interfaces (specifies type, always develop against interfaces), abstract class (implementation skelekton), concrete classes (complete type implementation based on abstraction

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

what is good API design?

A

in-parameter: type should be as abstract as possible, return paramter: type should be as concrete as possible

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

what is fluent API?

A

using chaining, is flexible and readable

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

how can class libraries be structured?

A

by dividing systems into subsystems

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

which sorts of GUI are there?

A

Modal applications with user-guidance (only few or even only one action possible), event-driven applications: events (by user, OS) trigger actions, challenge: handling control flow

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

Explain the Model-view-Controller approach (MVC)

A

model: comprises domain data and logic, view: responsible for visualization, controller: in charge of event handling

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

Explain the Presentation Model in more detail (MVC)

A

user interface state is handled, all dependent views are notified about state change

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

What are the limitations of class libraries?

A

complexity: class libraries tend to be large, good design comes with time (when to release first version?)

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