Earlier quoted context omitted.
> That's okay, but he is also indirectly encouraging a beginner to not care about the quality of the code he produces You really should not be using (or maintaining) code written by beginners, should you?
Yes, but that is not the point. The point is, best practices should be taught as early as possible, so that people don't acquire bad programming habits.
Getting beginners to experiment with their own code is a very natural way of teaching them what is good and what is bad, and why exactly it is good/bad - since they're the ones who'll have to maintain it.
Also, unrelated, but "having fun" is an amazing metric for good code. If some coding activity is boring as hell you're probably 1) on the wrong job or 2) using the wrong abstractions.