3 ms·
switch is example of explicit control flow, which Clean Code argues strictly against. the better approach would be to use implicit control flow using class hie
by bijowo1676 3mo ago
switch is example of explicit control flow, which Clean Code argues strictly against.
the better approach would be to use implicit control flow using class hierarchies, interfaces, and such and rely on class behavior, polymorphism and runtime dispatch, instead of explicit switch() which tends to multiply itself across the codebase
- fodkodrasz 3mo agoYou accidentally used the phrase better approach, instead of Clean Code.