When You Shouldn’t Remove Code Duplication (And How to Refactor the Right Way)

When You Shouldn’t Remove Code Duplication (And How to Refactor the Right Way)

35.782 Lượt nghe
When You Shouldn’t Remove Code Duplication (And How to Refactor the Right Way)
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In this video, I'll refactor some tricky, hard-to-detect code duplication, show you an example of when it's best to leave duplicated code as is, and share a few tips on how to avoid duplication altogether. 🔥 GitHub Repository: https://git.arjan.codes/2024/duplication. Bragir Repository: https://github.com/ArjanCodes/bragir. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 🔖 Chapters: 0:00 Intro 0:19 Obvious code duplication 1:48 Why duplicate code needs to be avoided 3:19 Duplicated code with different order 7:26 Duplicate code in different locations 9:41 When code duplication is okay 17:12 Some tips for avoiding code duplication 19:15 Outro #arjancodes #softwaredesign #python