Wiring

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Learn about wiring

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

wiring

for a system to work, each component’s required interfaces have to be provided by another’s interface

2
New cards

wiring stage 1

deciding which component will provide which required interfaces

3
New cards

wiring stage 2

performing the binding to connect the chosen components together

4
New cards

benefits of dependency injection 1

late binding - services can be swapped with others

5
New cards

benefits of dependency injection 2

extensibility - code can be extended and reused in ways not explicitly planned for

6
New cards

benefits of dependency injection 3

code can be developed in parallel

7
New cards

benefits of dependency injection 4

classes with clearly defined responsibility are easier to maintain

8
New cards

cup and ball diagrams

full circle provides, half circle requires

9
New cards

wiring question 1

when does it occur? at installation? at start up? dynamically through lifetime?

10
New cards

wiring question 2

how is the wiring specified? implicitly? explicitly as code? or explicitly as workflow?

11
New cards

wiring at installation pros

detect anomalies, find missing components

12
New cards

wiring at installation cons

not very extensible and not very robust

13
New cards

wiring at startup pros

find issues before any user touches the system, clear behaviour, extensible when system restarts

14
New cards

wiring at startup con

subject to binding failures

15
New cards

wiring dynamically notes

more flexible and extensible, but more complex

16
New cards

interface compatibility option 1

name based - interfaces have the same name

17
New cards

interface compatibility option 2

structural type - interfaces respond to the same operations or messages