If I hired someone that wrote code like this, I would fire them.