CODE ROAST: Yahtzee - New Python Code Refactoring Series!

Опубликовано: 21 Май 2021
на канале: ArjanCodes
69,147
2.1k

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

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: https://github.com/ArjanCodes/coderoa....

🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/

🔖 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


Смотрите видео CODE ROAST: Yahtzee - New Python Code Refactoring Series! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ArjanCodes 21 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 69,147 раз и оно понравилось 2.1 тысяч людям.