Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Structuring Your Code!
You have completed Structuring Your Code!
Preview
Keep your code free from repeats.
DRY, or don’t repeat yourself, is another popular acronym reminding you to keep your code free of repeats whenever possible.
Refactoring is the process by which you improve existing code.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
to not notice you've created the same
variable twice, or repeated some steps.
0:00
Every coder creates repeat
code at one time or another.
0:04
DRY or don't repeat yourself is
a great acronym to keep in mind as you
0:10
code to help you remember to review
your work and check for those repeats.
0:15
The best way to see how DRY
works is to see it in action.
0:21
Let's tackle some repeats,
open the DRY file and let's dive in.
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up