In looking at sample schematics, there is always? A resistor between power and component. how do I know when to use a resistor and of what size?
They are probably pullup resistors.
See http://www.seattlerobotics.org/encoder/mar97/basics.html
for info and V=IR formula in use. Engrave V=IR on your skull OK?