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

General Discussion

Having a hard time putting everything together to create my own codes

I've finished a bunch of online tutorials: codecademy, learn ruby the hard way, chris pines learn to program, ruby monk, ruby in 100 min. And yet, when i try to answer questions on Project Euler or other questions for beginners, its tough for me to create my own code to get the expected answer (its a bad habit, but im looking at solutions online). When i look at the solutions, everything clicks. And the codes all make sense, but I cant seem to create those codes myself. Any suggestions on what i should do to improve this?

What strategies, advice, techniques, did you guys find useful to get past this hump? Any help is greatly appreciated!!!

Thanks guys!

5 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

It sounds like you have a lot of practice but it's all been practice at following directions. Spend some time just building little scripts for yourself that scratch niggling itches. Make a script that'll remind you X minutes ahead to something. Turn that into a Pomodoro timer or something.

Or, you know, don't since now you're just following instructions again :)

The best way I've found to get good at doing something on your own is to do it on your own, repeatedly. Yes, you'll suck and screw up a bunch, but you'll get that out of the way now and start doing amazing things.

That is very good advice right there! :)

Awesome advice Kenneth! I've been trying to do problems on my own and the tough part(as a "beginner programmer is understanding what's happening in every step of the code block. I guess all I can really do is to grind it out! I'll definitely try to build my own projects

And if it's not to much for you, get the habit of using a VCS (Version Control System) like GitHub for instance. It's an awesome way to keep track on your progress and bugs. :)

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Yeah, VC everything and put everything on GitHub or BitBucket and make sure to link people to it. Get feedback, take pull requests, make your code constantly better.

Set your own projects, something you think would be useful. As Kenneth suggested start with simple tasks first. Just something you'd like to be able to accomplish. Not from a coding point of view but from point of view of a user, what would you find useful? Then start breaking that down into something you could actually code. Don't be afraid to make something clunky and inefficient as long as you start getting something and applying what you know. Even if it doesn't work, finding out why it doesn't work can be valuable knowledge and skill learning.

I struggled with the same thing not only with Ruby but with JavaScript until I watched the Jquery course here on treehouse and one thing I picked up and started to do on all languages is to write out plain text comments this can be done on your text editor or plain pen and paper. On them I break down the major problem/goal/feature into smaller bits so that instead of looking at my main goal and not knowing how I am going to get there I can see everything in plain text and much easily translate that into code. Over time I hope it just becomes natural and I won't have to use this as much. Give this a try if your not already doing it it has helped me a lot.

Awesome idea! Thanks for your input!!! Greatly appreciated, definitely will try putting comments into my codes!