4 ms·
In "Pattern 2: Switch to Polymorphism", he recommends not writing huge switch-statements, but instead recommends inheritance. Polymorphism is entirely doable wi
by sshine 8y ago
In "Pattern 2: Switch to Polymorphism", he recommends not writing huge switch-statements, but instead recommends inheritance. Polymorphism is entirely doable without inheritance using interfaces and parametric polymorphism. Besides that, great advice.