Smooth Python OO design and coding success | Parrot Refactoring Kata

preview_player
Показать описание
I'm a big fan of Python and the Parrot Refactoring Kata is a good exercise for demonstrating the capabilities of the language and its refactoring tools. How do you think this compares with my previous videos doing the same exercise in Java and C#? Leave me a comment with your thoughts.

▬ Links ▬▬▬▬▬▬▬▬▬▬

Previous video explaining the Parrot Refactoring Kata ➡️

Add me on social media

▬ Video chapters ▬▬▬▬▬▬▬▬▬▬
00:00 - Introduction
00:51 - Demo Session: Parrot Refactoring Kata in Python
05:27 - Implementing the factory method
07:37 - Begin Creating Parrot subtypes
09:41 - Push down "getSpeed" and "getCry" into subclasses
13:31 - Remove 'type' member from the Parrot superclass
14:32 - Push down additional code elements
18:20 - Reviewing all the refactoring steps
18:53 - Closing words
Рекомендации по теме
Комментарии
Автор

Excellent video, Emily.

Note that at 15:08 you push down number_of_coconuts and things blow up. If you look closely at the Push Members Down dialog you have __init__ selected as well as number_of_coconuts.

It's nice to see the limitations of automated refactoring in Python, but I see I could learn a few tricks, especially adding and removing parameters from functions and methods.

JhanaratoBhikkhu
Автор

Please, keep doing Python katas if you can <3 agg I wish you had presentation mode ON

RosanaRuFer
welcome to shbcf.ru