Refactoring and Migration Flashcards

1
Q

what code changes can we make

A

add new features

remove features

adapt

refactor

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

what is refactoring

A

change the quality of the implementation

specification stays the same

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

give the process of refactoring

A

run tests

refactor

run tests again

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

what is a non functional requirement

A

system properties

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

give examples of non functional requirements (4)

A

efficiency

robustness

throughput

usability

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

what are examples of refactoring (3)

A

rename

variable to constant

moving methods

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

what is a code smell

A

an indication that makes you think the design isn’t as good as it could be

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

what is migration

A

move functionality from one context to another

larger in scope than refactoring

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

give examples of migration

A

from files to DBMS

plaintext to encrypted communications layer

host to cloud

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

give the migration process

A

ensure tests are adequate

migrate tests

migrate functionality

test

remove old tests

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

give example code smells

A

the presence of literals

long methods

excessive comments

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