I was taught that it has much to do with two factors, which tend to outweigh inductive effects:
1. Does the substituent have an electron pair to donate?
2. Is the substituent, itself, electron deficient (electron starved)?
The strongest donating groups, OH, OCH3, NH2, have lone pairs to donate. Some of the weaker donating groups, such as CH3 (and other R groups), have no lone pairs but instead feature a "delta negative", which indicates an excess of electrons and a willingness to donate. In CH3, for example, note that since C is more electronegative than H, it will pull electrons toward itself (we indicate this with a delta negative). This excess of electrons can then be shared with the aromatic ring to increase either nucleophilicity or arenium ion stability.
In contrast, a strong electron withdrawing group is one with a formal + charge and inductive groups attached to it. An important example is NO2; if we google NO2 to see its structure, we realize it has a + formal charge (it is electron deficient), and is surrounded with O's, which, being more electronegative, further withdraw electrons from our N, who in turn withdraws from the aromatic ring. This same principle applies for other strong deactivators, such as NR3+, NH3+, SO3H, and nitriles. Weaker electron withdrawing groups, such as carbonyls, which all feature the same C=O bond, follow the same concept but have a delta + due to the more electronegative O with respect to C, instead of a formal + charge.
Also, just memorize the "halogen exception" as it is important. I hope this helps give some insight into the reasons behind activating and deactivating groups!