Find better co-workers.
where can i find them? do you know what WET means?
In my humble experience, anyone who can't constructively criticize others' code is probably a bad programmer themselves.
You may very well be a bad programmer. Almost all of us are. It is good if you are perfect out of the gate, but it is also good to get things done, and keep improving.