RULE DESCRIPTION:
Duplicate code inside methods and tests is an indication of poor code design. Refactor duplicated code whenever possible to allow for ease of use and prevent making identical changes in multiple locations.
TIMESTAMP:
0:13 Intro
0:39 Common types of duplicate code
0:44 Similar variable names
1:08 Similar method names
1:39 Similar method implementation in multiple classes
2:05 Duplicate unit test code
2:43 Duplicate code inside a method
3:06 Why is duplicate code bad?
3:50 I challenge you to avoid duplicate code
COACH JOE MISSION:
This video series will cover all Coach Joe rules. Lesson tutorials are broken down into visual descriptions along with good and bad code examples. Following these preferred standard coding rules will help write cleaner more maintainable code, test driven development (TDD) and unit testing. Many rules apply to other languages like C#, Python, Typescript and Kotlin. Below are a list of Coach Joe rules included in this series that will help with your learning and education process.
Amazing pictures and artwork provided by:
https://unsplash.com/@benwhitephotogr...
https://unsplash.com/@tuzbro?utm_sour...
https://www.freepik.com/free-photo/se...
https://www.freepik.com/free-photo/en...
https://unsplash.com/es/@lgnwvr?utm_s...
https://www.freepik.com/free-photo/wo...
https://www.freepik.com/free-vector/h...
https://www.freepik.com/free-vector/w...
https://www.pexels.com/photo/photo-of...
https://unsplash.com/es/@beckerworks?...
On this page of the site you can watch the video online Rule #11 - No duplicate code with a duration of hours minute second in good quality, which was uploaded by the user 10 Minutes with Coach Joe 08 March 2023, share the link with friends and acquaintances, this video has already been watched 692 times on youtube and it was liked by 42 viewers. Enjoy your viewing!