Rotary Encoder Help

I haven't bought encoder yet so I can't test it.
It's not necessary to add extra code for direction (code above) ?

In horizontal position var encoder0Pos would be 0. Code will increase or decrease variable by 1 depending on CW or CCW direction?

degree = encoder0Pos * 0.3515625

bad note:

  • encoder0Pos will be counting forever, that means that if you keep turning into the same direction,
    the serial message will become longer (up to 6 characters), costing more time to transmit..)
  • for higher resolution encoders, there is a possibility that this sketch will not see every individual step.

Pulldown resistors (10k) are going to be needed on the inputs in Interrupt Example from arduino playground?
Does I need also Low pass or Kalman filters for smoothing sets of data?