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 trialsindhu shree
8,948 PointsDots printing all at once at the end instead of printing at intervals with every loop ending
***Using Ruby 1.8.7
Here's the link to the code:
https://github.com/black789/Treehouse/blob/master/benchmarker.rb
2 Answers
Jay McGavren
Treehouse Teachersindhu shree I can't try this myself, because as I said your code works as-is for me. But you might find a partial solution here: https://stackoverflow.com/questions/29998728/what-stdout-sync-true-means
Jay McGavren
Treehouse TeacherYour code works exactly as it is for me, printing the dots as it goes. I ran it under Ruby 2.3.0.
Ruby 1.8.7 is a very old version. That may be part of the problem. It might be a good idea to update it.
sindhu shree
8,948 PointsI can't update because the firm I work with uses this particular version. Isn't there a workaround for this kind of problem?
sindhu shree
8,948 Pointssindhu shree
8,948 PointsThe solution from this link worked for me. Thanks