|
|
|
|
|
by BoxFour
1053 days ago
|
|
The issue at hand is not about cleverness. Code was devised to address a specific problem (DRY), which it did quite elegantly. Then, the situation evolved, rendering the solution inappropriate. When a controller starts to deviate from the standard approach, it's best to refrain from inheriting from the base controller and instead create custom ones. Once all controllers operate independently, the base class can be safely removed. The key lesson here is not to avoid cleverness but to be aware of when the initial problem becomes obsolete. |
|