Advice on buying a rotary encoder?

Hi,
I've been working with some cheap rotary encoder and have tried both the hardware and software debouncing methods. Although I've had some success with both, it still wasn't working perfectly when I went down the hardware route and the code got a bit messy using the software method when trying to add extra functionality that my project requires. I'm just wondering does anyone know of any encoders out there that have little or no bouncing issues?I'm willing to spend about 40 or 50 euro as its for my final year project if anyone has any recommendations? Any advice would be greatly appreciated.

Look for optical based encoders. Farnell have a lot of them, you can display the list by price order.

Thanks!Would coding an optical encoders be the same as for a mechanical one in terms of count the rises,falls etc.? Sorry if this is a stupid question but I'm fairly new to all this.

Optical encoders are best, but expensive. I've found cheap mechanical ones adequate as user input devices, as long as I poll them every 1 or 2ms and use a 2- or 3-state hysteresis in the software. You can find the code I use for driving them at GitHub - dc42/arduino: Reusable modules, drivers and patches for the Arduino platform.

!Would coding an optical encoders be the same as for a mechanical one in terms of count the rises,falls etc.?

Yes identical.