I've been wondering this for a while and haven't made sense of it...

What is the difference between using A and И for and? (too many ands...)

Is one used when related to a person or subject of a sentence or something?