Рет қаралды 6,016
Downcasting is a fundamentally bad idea. In this video I talk about why. First from a theoretical point of view (all cats are animals but not all animals are cats) and then from a pragmatic collaboration perspective (I cannot trust your interface if you are downcasting).
MORE ON TYPE CHECKING
► Type Checking Is A Code Smell ( • Type Checking is a Cod... )
► Type Checking and Coupling To Concretions ( • Type Checking is a Cod... )
GEAR USED
► CAMERA: Canon 70D amzn.to/29wR8wG
► LENS: Canon 10-18mm amzn.to/29srabL
► TRIPOD: JOBY Gorillapod Zoom amzn.to/29AdkHT