Hatred and Discipline are the two resources used by the Demon Hunter in Diablo III. It is the only class that has two separate resources. General rule is that Hatred is used for offensive skills, while Discipline is mostly required for defensive abilities. Discipline-independent builds exist, however.
"Demon hunters are perpetually at war with themselves. They hold no hope for a return to their former lives, but they fight and stalk demons with a passion. Those hunters who live to train others become deliberate and cautious and, yet, their impulses scream to meet demonic violence with more violence. Every arrow that demon hunters launch is dipped in spite; nearly all of their attacks are delivered with Hatred, a cold, righteous anger that renders them utterly merciless to their enemies. Their Hatred is nearly endless; it recovers quickly, as, even at rest, demon hunters are filled with the desire for vengeance."
Special magical affixes on Cloaks, Quivers, and Hand Crossbows can increase the rate of Hatred regeneration, which normally each Demon Hunter has a maximum of 125, regenerated at the rate of 5 per second, but they may gain up to +6 per second from items. In addition, Blood Vengeance skill adds another +25 maximum Hatred, and Bat Companion and Templar both add +1 Hatred per second. With Archery, one will gain +1 per second if dual-wielding Hand Crossbows. Paragon levels may grant +25 more Hatred.
"Those hunters who would hope to make any sort of true impact must temper their Hatred with a second resource: Discipline, the caution and care that ensures they live to kill another day. Discipline is precious to demon hunters. Not only does it return slowly, requiring more reflection and patience than their Hatred-based attacks, but they must rely on it for every defensive maneuver — trapping enemies in place, vaulting out of the way of teeth and claws, and dodging hails of spines and arrows. It is a simple matter for demon hunters to stand in place, icy with Hatred, and send a volley of projectiles at the hordes of their enemies. But, when they fail to defend themselves with Discipline, hunters leave themselves able to be slaughtered. A careful balance of Discipline and Hatred is the most likely way hunters ensure their survival."
Discipline returns at the rate of 1 point per second, and Demon Hunters possess only 30 total Discipline without equipment. To add further insult to injury, there are no ways to increase Discipline regeneration, though many skills allow generating it from hits and Critical Hits. However, Demon Hunters may gain up to +36 maximum Discipline from items (+46 with Legendary items), +15 from Preparation (Invigoration rune) and another +20 from Natalya's Vengeance set). Perfectionist skill also reduces cost of Discipline skills by 10%, rounding down.