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

Why don't we use interpolation?

Why doesn't Jason use string interpolation instead of manually typing in all those + " " spaces?

1 Answer

Steven Parker
Steven Parker
231,236 Points

You didn't mention which course you were viewing, but I'd bet that if interpolation wasn't introduced earlier in the same course, it's not used for the benefit of students who might not have already taken one where it is explained.

And don't be surprised when you are able to improve on the course examples, that's an indication of your learning progress.

Sorry. I think it was the Ruby objects and classes part. It’s been introduced already.

Steven Parker
Steven Parker
231,236 Points

But probably introduced in a different course, not everyone takes all the courses or in the same order.