Failing an assignment might cost you one job opportunity, but complaining about it publicly can harm your reputation and limit your chances with a lot of employers.
In the long run, venting online can be far more damaging than the initial setback - and a huge waste of time!
I see your point, but I think it depends on the situation. In this case, he misunderstood the task, and instead of reflecting on his mistakes, he complained about it online. Not a great look.