Refactoring and Migration Flashcards
what code changes can we make
add new features
remove features
adapt
refactor
what is refactoring
change the quality of the implementation
specification stays the same
give the process of refactoring
run tests
refactor
run tests again
what is a non functional requirement
system properties
give examples of non functional requirements (4)
efficiency
robustness
throughput
usability
what are examples of refactoring (3)
rename
variable to constant
moving methods
what is a code smell
an indication that makes you think the design isn’t as good as it could be
what is migration
move functionality from one context to another
larger in scope than refactoring
give examples of migration
from files to DBMS
plaintext to encrypted communications layer
host to cloud
give the migration process
ensure tests are adequate
migrate tests
migrate functionality
test
remove old tests
give example code smells
the presence of literals
long methods
excessive comments