For me what works well is backless chairs that allow me to angle my thighs downward slightly and tuck my feet underneath me and to the side. Right now I'm on a yoga-ball-chair (basically a yoga ball that does not roll). Previously I sat on a large round ottoman.
I have long since opted for painless over imposing, but if you're one of those lucky persons who can stand up and work, that's probably your best bet.
It is OK to lean towards your computer, lean back, do all sorts of weird things -- if you do the work to maintain your spine and neck position. In fact, you should vary your position as you work, take breaks, etc.
BTW it's important to regularly get out of your chair too.
The problem is I don't remember to, or it slips my mind throughout the day. Any quick hacks you know of to help? I heard of one where you just keep a post-it on your computer to remind you..