Learn how to practically apply design patterns and principles by watching this full code refactoring of a Python project submitted by one of the subscribers. I start with a thorough analysis of the code, discuss its strengths and weaknesses, and then refactor the code to (hopefully :) ) improve it.
The code I worked on in this episode is available here: [ Ссылка ].
💡 Here's my FREE 7-step guide to help you consistently design great software: [ Ссылка ].
🎓 Courses:
The Software Designer Mindset: [ Ссылка ]
The Software Designer Mindset Team Packages: [ Ссылка ]
The Software Architect Mindset: Pre-register now! [ Ссылка ]
Next Level Python: Become a Python Expert: [ Ссылка ]
The 30-Day Design Challenge: [ Ссылка ]
🛒 GEAR & RECOMMENDED BOOKS: [ Ссылка ].
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
💬 Join my Discord server here: [ Ссылка ]
🐦Twitter: [ Ссылка ]
🌍LinkedIn: [ Ссылка ]
🕵Facebook: [ Ссылка ]
🔖 Chapters:
0:00 Intro
1:19 Overview of the original code
3:14 Analysis of the original design
8:07 Refactoring the Die class
9:58 Refactoring the Hand class
16:29 Refactoring the Rules system
22:49 Refactoring the Scoreboard class
29:40 The YahtzeeGame class
40:42 Running the new version of the game
40:59 How has the design improved?
41:57 Adding a custom Fibon-Yahtzee rule
42:55 Limitations to the new design
43:52 Improvements in the testing code
45:23 Final thoughts
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
CODE ROAST: Yahtzee - New Python Code Refactoring Series!
Теги
python code refactoringlearn python 2021code refactoringcode refactoring pythonpython tutorialclean codedesign principlessoftware developmentlearn python 3programming best practicesrefactoring python coderefactoring pythonpython refactoring exercisespython refactoring tipsdesign principles in software engineeringcode refactoring exercisescode refactoring tutorialprogramming best practices pythonRefactoring python example