What STDOUT.sync = true means?
Normally, puts does not write immediately to STDOUT, but buffers the strings internally and writes the output in bigger chunks. This is done because IO operations are slow, and usually it makes more sense to avoid writing every single character immediately to the console. This behavior leads to problems in certain situations. Imagine you want … Read more