Channel: @ArjanCodes
In the second and final part of this code roast where I'm refactoring a battleship game, I look more closely at how the data is structured and refactor the code to make it beautiful and clean.
The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-coderoast-battleship.
Part 1 of this series: https://youtu.be/u3yo-TjeIDg
💡 Get my FREE 7-step guide to help you consistently design great software: https://arjancodes.com/designguide.
💻 ArjanCodes Blog: https://www.arjancodes.com/blog
🎓 Courses: The Software Designer Mindset: https://www.arjancodes.com/mindset The Software Designer Mindset Team Packages: https://www.arjancodes.com/sas The Software Architect Mindset: Pre-register now! https://www.arjancodes.com/architect Next Level Python: Become a Python Expert: https://www.arjancodes.com/next-level-python The 30-Day Design Challenge: https://www.arjancodes.com/30ddc
🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.
👍 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!
💬 Discord: https://discord.arjan.codes 🐦Twitter: https://twitter.com/arjancodes 🌍LinkedIn: https://www.linkedin.com/company/arjancodes 🕵Facebook: https://www.facebook.com/arjancodes
👀 Code reviewers:
🎥 Video edited by Mark Bacskai: https://www.instagram.com/bacskaimark
🔖 Chapters: 0:00 Intro 1:00 Moving out magic numbers into constants 2:57 Creating a BattleshipBoard class 11:34 Simplifying the logic in the Game class 20:35 Final overview of the changes
#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!