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 DOM Scripting By Example!
You have completed DOM Scripting By Example!
Preview
Refactoring is a process that naturally follows the initial coding stage, where you go back through your program and make what you wrote more concise and readable.
This video doesn't have any notes.
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
If you don't organize your code well,
it could be challenging for
0:00
someone else to step in and
understand how the program works.
0:02
It could even be challenging for
you to return to some of your old programs
0:05
if you didn't take the time
to organize their code.
0:09
When you're working on a project, your
mind often moves around in creative and
0:12
wandering ways.
0:16
Your code follows where your mind goes,
that's a good thing, and
0:17
it can help you come up with creative
solutions you didn't think of
0:20
when you first planned out your program.
0:23
But when you solve those problems,
it's important to go back and
0:25
clean up your code.
0:28
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