Featured

Python: Duck Typing - What it really means!



Published
Duck-typing is one of the most misunderstood concepts in dynamic OO design. I found many explanations for duck-typing, not to the point. So, in this video, I have attempted my own take on explaining duck-typing for those of you who still find it confusing.

This video explains problem-solving without using duck-typing (the traditional approach) for the first 20 minutes and then introduces how the problem can be solved using a duck-typing approach with the advantages.

Chapters / Timeline
-------------------------------
00:00 - Introduction
00:26 - Where is duck-typing applicable
00:45 - Origin of the term 'duck-typing.'
01:05 - Examples of duck-typing in real-world
03:45 - A simple problem statement (example) in Python
13:14 - Generalization (using Liskov's Substitution Principle - LSP)
20:15 - The problem with the Generalization approach
22:16 - Using duck-typing as an alternative approach to Generalization (LSP)
29:24 - Ending notes

Please do comment if you have any queries or need more clarification. Hope you find this video useful.
Category
Job
Be the first to comment