I am currently sitting on a chair that does not have a back, but instead you put your knees on these knee pads and you are basically kneeling while sitting. It keeps my posture straight and thus my back straight.
Also, I have on of the Apple thin keyboards and as such my hands do not have to be raised upwards at a weird angle to reach the keys, which is more comfortable and has led to faster typing and having less pain in my wrists from long hours of programming.
The other thing I have is a desk that is at the right height for my arms to be sitting at just about 90%, so my elbow is not feeling strained, and since my arms feel comfortable at my side I don't have my elbows all pushed up attempting to keep my arms flat on my table to be able to type on the keyboard.
A good mousepad and mouse will also go a long way. Get something you are comfortable with and make sure that if you use your mouse a lot that you have the settings set up in such a way that you feel comfortable with the way it fly's across the screen. My mouse personally has to be able to go from one screen to the next within just a short second or so, which means I have less movement to go through.
Also, learn how to use the shortcuts that your OS offers and whatever IDE you are using. They will help in the long term in that you will have to move your mouse hand less to the mouse since you can now hit a button combination to do the same thing. Not only that, but it will increase the speed and effectiveness of everything you have to get done since keyboard short cuts are much faster than moving the mouse to some context menu and then to the option you want.
Best of all, every hour or so, get up, walk around, shake your arms and legs out and roll your neck. If you start to feel tired or numbing sensations make sure to just switch positions or move around for a bit, if you start to feel pain switch it up.