Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBlaize Lange
2,298 PointsCan an decently experienced programmer know the structure for this code instantly?
I am sure Dave had this lesson planned out before the video, but do people with some experience just write codes like this knowing every variable they need and how to structure the whole thing from scratch the first time or is it just a constant editing process. I'm new to coding and just wondering how the process works when writing/structuring code from scratch.
1 Answer
Jason Welsh
Treehouse Project ReviewerYou generally start to think about the types of of variables you will need and what they will do, as well as what other things you will need (loops, objects, arrays, etc.). I was wondering the same thing, butt he more I tinker around with building random things with JS, the more I think about how I am going to structure my code right from the start. That said, it is still always an editing process of code/test/debug||move forward