Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

If-statements are code smell

Name: Anonymous 2021-01-15 17:41

They are incompatibile with the principles of OOP.

Name: Anonymous 2021-01-19 3:36

Every if and every switch should be viewed as a lost opportunity for dynamic polymorphism. If we can replace this with dynamic polymorphism then the program will be much easier to maintain.

http://csis.pace.edu/~bergin/patterns/ppoop.html

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List