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.

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
216,057 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
216,057 Points

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