I'm afraid you are the real wtf...
When a company takes on a junior, and especially a junior just out of education, it also takes on some moral obligation towards that developer. As others have commented, there is a wide gulf between programming for a university assignment and programming in the real world.
Someone should have taken responsibility for taking the junior under their wing, and keeping an eye on what he was doing. Someone should have been guiding him, encouraging him, and when he wondered off into WTF territory, giving him a gentle kick back on to the straight and narrow.
At my place, all work has to be peer reviewed - usually within 24 hours of it being committed, and before it is submitted for the consideration of the test team. I was skeptical at first, but in a decent team this is an excellent practice - it allows for knowledge sharing, provides a safety net, and decreases the overall amount of work placed before the test team.
What's not to like?