Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Blaize Lange2,298 Points
Can 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.
Jason WelshTreehouse Project Reviewer
You 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