Agreed. Besides crappy formatting, he also makes his programs do confusing things. Why does the first example run in the infinite loop?
"By itself, the yes command outputs 'y' or whatever is specified as an argument, followed by a newline repeatedly until stopped by the user or otherwise killed; when piped into a command, it will continue until the pipe breaks (i.e., the program completes its execution)."
yes - output a string repeatedly until killed