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.
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,050 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