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
An introduction to popular code structure strategies.
Terms:
- Narrative flow involves writing your code as if someone were reading a story of how the program will work.
- Iterative coding is a process where you code a small piece of your project and then test it, then code the next piece and test it, so on and so forth.
- KISS, or keep it simple silly, is a popular acronym to remember that simple is usually better.
- 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
[MUSIC]
0:00
Hi, my name is Megan, and
I'm a teacher at Treehouse.
0:00
When it comes to laying out your code,
there are a lot of pitfalls
0:05
a developer can fall into,
especially when new to programming.
0:09
Repeating code,
code that is disorganized or
0:13
hard to follow, and
over complicating are a few examples.
0:16
It's important to keep in mind
how your code is structured.
0:21
Both the overall file
structure of your project, and
0:24
the code inside of each file too.
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