Most of the circuits I've been studying to learn from have diodes for two reasons. The first(most common) is to make sure current doesn't flow the wrong way and break something. The second is to drop the voltage a little(why not just use a resistor?) So, are these the main reasons to use one, are diodes necessary or just a safety precaution?