Inversion of Control

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

1/14

flashcard set

Earn XP

Description and Tags

Final one GAH

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

control inversion

control doesn’t follow the call order, different parts of the code receive control at unpredictable moments

2
New cards

characteristics of control inversion 1

can’t walk through the code because logical flow is uncertain

3
New cards

characteristics of control inversion 2

need to ensure all paths are correct when debugging

4
New cards

why control inversion?

allows for more sophisticated programming constructions

5
New cards

example of inverted control 1

callbacks - allow server to interact with client

6
New cards

example of inverted control 2

factories - components that create others

7
New cards

example of inverted control 3

dependency injection - complex factories that encapsulate dependencies between sets of components

8
New cards

example of inverted control 4

extension via code fragments - move code around the network

9
New cards

challenges with callbacks

concurrency - client has to respond to server in the middle of a call, which means it constantly needs to be listening and responding

10
New cards

dependency injection design pattern

encapsulate complex construction and wiring, the inversion of control comes as the DI component contains logic that’s been removed from the clients and refactored

11
New cards

variations of dependency injection

method, interface, setter and constructor dependency

12
New cards

issue to bear in mind for all the systems 1

different code bases

13
New cards

issue to bear in mind for all the systems 2

different authorities

14
New cards

issue to bear in mind for all the systems 3

different permissions

15
New cards

issue to bear in mind for all the systems 4

different levels of understanding of how the overall system fits together