I'm relatively new to the Pi from a webdev and basic Python background. What I'm finding ridiculously annoying is trying to debug and run code efficiently on the Pi. I like to develop on Sublime2 or something similar, but I can't do this without continuous SSH connections breaking/reconnecting and spending ages just trying to run the changes I've made.
So what does everyone use here? What am I missing? Do you all write the code directly on the Pi!? There must be an efficient way of trying my sensors out etc?
Can anyone help?

sshfs, but I use linux at both ends, in which case it is pretty simple (you just have to configure sshd on the pi, and read the sshfs man page -- I'm sure there are also many explanations online). I think windows/OSX users generally prefer samba. – goldilocks Sep 14 '15 at 21:34