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
Grace Kelly33,990 Points
Ruby Collections Extra Credit
Hey guys I just finished the Ruby Collections course which was awesome!! I did the extra credit and thought I'd share my solution. Instead of a shopping list, I created a simple Pokemon Team Builder with while loops and conditionals, Here's a snapshot of my code: https://w.trhou.se/elsja2kuz9
I'm sure there is a much more elegant way of doing this and I'll probably come back to it once I've learned more Ruby, but this extra credit exercise really helped me retain what I learned on the course...now onwards to Ruby Loops!!
I wonder why Treehouse doesn't teach TDD though?
David O' Rojo11,051 Points
Following TDD principles, I included tests cases with my program using MiniTest. As at this course we are no using classes and objects, I had to resort to monkey-patch the
Kernel module and also created a couple of new methods to make the testing easier.
If someone wants to look at it, this is the URL: https://teamtreehouse.com/workspaces/21256972