Knowing your personality type can be really useful. I found these links on the Internet which helps one judge what his personality type is like.
Here is one nice exercise which can be used to decide the personality oneself. I saw somewhere that most programmer and software engineers happen to be INTJ.
Here is another type of analysis. The good thing about this one is it has some tips on how to deal with each type of personality.