I've been programming for ~20 years and I sit very slouched, with my butt resting at the at very forward lip of my chair.
This is very comfortable and relaxed and puts no pressure on my back at all. I keep my monitor high up so my head is elevated. If the need arises, I can do this for 12 hours a day without being uncomfortable or sore at all by the evening.
Sitting ramrod straight in the proper "ergonomic" position seems like a disaster waiting to happen. It's super uncomfortable and stresses my back, my arms, my neck.