Backbone is hugely supported by muscles. Slipped disc basically means there were no muscles to prevent it. Posture, healthy lifestyle etc is hugely irrelevant. Also typical exercise like running, lifting etc does not help.
As a developer, you should train torso muscles to protect your backbone. Pretty complicated regime, you need good personal trainer for that.