None of that depends on what other people did, though you're certainly right that they shouldn't have attacked you (and we'll ban them, too, if they keep posting like that).
If you don't want to be banned, it's not that hard to read the guidelines and follow them. The vast majority of users here manage that just fine.
I don't want to get locked into hostility here! It's nothing personal, and if you genuinely want to use HN as intended, there are always ways to correct the situation. We just need reason to believe that you do in fact want to use HN as intended and that the pattern of breaking the guidelines won't keep happening in the future.