mirror of
https://github.com/rust-unofficial/patterns
synced 2024-11-04 18:00:27 +00:00
704 B
704 B
Refactoring
Refactoring is very important in relation to these topics. Just as important as the other topics covered here, is how to take good code and turn it into great code.
We can use design patterns to DRY up code and generalize abstractions. We must avoid anti-patterns while we do this. While they may be tempting to employ, their costs outweigh their benefits.
Shortcuts make for long days.
We can also use idioms to structure our code in a way that is understandable.
Tests
Tests are of vital importance during refactoring.