OOP | OOP2 | FINAL QUESTION |
---|---|---|
Flocking Rules
1. Select the things that are most alike.
2. Find the smallest difference between them. 3. Make the simple change that will remove the difference. |
Refactoring
Re-arrangement of code but without modifying the behavior
|
“Isolate the things you want to vary.”
What is the chant to Sandi’s cult?
|
Naming and cache invalidation
What are the two hardest things about programming?
|
Code Smell
Pattern in code that could indicate a larger problem
|
|
Extract class recipe
What is the recipe to solve the primitive obsession smell?
|
Open-closed principle: open for extension, closed for modification.
What is the O in SOLID?
|
|
Magic number code smell
A hardcoded number constant that has no explanation.
|
||