Downcasting Is A Code Smell | Code Walks 043

Опубликовано: 12 Март 2026
на канале: Christopher Okhravi
6,392
203

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 Code Smell | Code Walks...  )
► Type Checking and Coupling To Concretions (   • Type Checking is a Code Smell | Code Walks...  )

GEAR USED
► CAMERA: Canon 70D http://amzn.to/29wR8wG
► LENS: Canon 10-18mm http://amzn.to/29srabL
► TRIPOD: JOBY Gorillapod Zoom http://amzn.to/29AdkHT