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

Ruby

How to be a better programmer

I have finished the ruby track, and finished couple books of ruby. And also working on couple projects, but I feel it is hard to improve. So, does anyone have a better way for it?

Greg Kitchin
Greg Kitchin
31,522 Points

I've not done Ruby, but a good way to practice is to make your own projects and programs. Then, you've got practice writing up your own code, and can see good ways of using it.

For example, I wanted a way to add the numbers 1 through 10 together. There's a formula to do that as well (look up Gauss if you're curious), but writing different ways of solving the problem helped me understand Java more.

1 Answer

Enrique Munguía
Enrique Munguía
14,311 Points

Try teach Ruby to someone else that is interested, or answer questions here at the forum or at StackOverflow. There is a quote that says

If you want to master something, teach it.

Greg Kitchin
Greg Kitchin
31,522 Points

http://www.rubberduckdebugging.com/ Is similar to what Enrique says, though you are teaching a rubber duck code. Sounds strange, but I've heard of it happening in a few places.