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 trial

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,009 Points

programming is 100% open book.

Steven Parker
Steven Parker
231,269 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!