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.

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements Improving the Random Number Guessing Game

Blaize Lange
Blaize Lange
2,298 Points

Does writing code like this become easier with practice?

Once I see the code written out completely, I can go through line by line and understand why/how it is written and why/how it works. My problem is I don't think I could write this from scratch at all. Does that just come with time/practice? Is understanding just understanding how/why the code is wrote good enough at this point?

2 Answers

jason chan
jason chan
31,008 Points

programming is 100% open book.

Steven Parker
Steven Parker
218,832 Points

:point_right: Just about anything becomes easier with practice.

One thing I've found with learning here is that as you move forward, you often work with concepts that were introduced in earlier courses. This reinforces the earlier concepts while you learn new ones.

Another thing that may help is trying some additional challenges, such as you might find on Code Wars.

Blaize Lange
Blaize Lange
2,298 Points

Yeah after I posted my question I thought it was kind of dumb lol. I'm just going through the lesson and the code dave had written and kept thinking that it all made sense, but would have a lot of trouble writing it from scratch myself. However I just did the code challenge and surprised myself how well I did. I'm just starting out so it seems a little overwhelming at first. Code Wars looks awesome, definitely going to check it out, thanks!