- Names are important
- Replace condition with Polymorphism i.e. create subclass for each variation
- Remove duplicated code i.e. DRY - Don't Repeat Yourself principle
- Yagni ( "You Aren't Gonna Need It" ) - Extreme Programming - i.e. Don't design or code anything for future requirements because it may not be required
Last active
November 20, 2019 12:13
-
-
Save notionquest/d33bbe43aed1f1a51d63dec6a181bd40 to your computer and use it in GitHub Desktop.
Refactoring code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment