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 can definitely relate with thighs angling slightly downward though.
A chair back with lumbar support prevents you from sitting in a bad posture, but doesn't help develop the muscles that naturally promote good posture.
Even better would be if I could get rid of my desk so I have no way to slouch forward.
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.
These days I use a fixed yoga ball chair [1] which promotes generally the same posture, but keeps most of the support under your butt.
[1] https://www.amazon.com/Gaiam-Classic-Balance-Ball-Chair/dp/B...
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..
But I think best is to set yourself up for success. Make proper posture the easiest option your unconscious brain has. If there's something you're slouching on, remove it.
As I mentioned elsewhere, I have no chair back or arms, since I would always slouch on them. They're gone, no more slouching on them; I spent more time by default just sitting upright. Now I slouch on my desk though; I should figure out how to remove it from the equation.