minus-squaredjnattyp@lemmy.worldtoProgramming@programming.dev•Avoiding if-else Hell: The Functional Stylelinkfedilinkarrow-up4arrow-down1·9 days agoGoogle for “replace conditional with polymorphism”. Just checked and it is in “Clean Code” - Chaper 17; Section G23 “Prefer Polymorphism to if/else or switch/case”. linkfedilink
Google for “replace conditional with polymorphism”.
Just checked and it is in “Clean Code” - Chaper 17; Section G23 “Prefer Polymorphism to if/else or switch/case”.