Back to Browse

CODE ROAST: Yahtzee - New Python Code Refactoring Series!

71.4K views
May 21, 2021
45:58

💡 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/coderoast-yahtzee. 🎓 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

Download

0 formats

No download links available.

CODE ROAST: Yahtzee - New Python Code Refactoring Series! | NatokHD