I think you're making the mistake a lot of people seem to make on HN, and in my experience is typical for programmers in general.
Telling someone their code sucks does not equal telling them they suck.
You are not your code.
Telling someone their code sucks does not equal telling them they suck.
You are not your code.
The code is the code. Not the person.
And so what? You think books don't get bad reviews? Movies? TV shows? School tests? It's part of life. Take the hit, move on. Do better if you must.
EDIT to add: When it comes to one-on-one being told your work sucks, the best response I think is this: "OK, if it sucks, tell me how, because I'm not yet able to see it and I'd rather not suck." That's better than just stewing in hurt feelings and never improving or knowing how to improve.