Pain/Gain Thresholds in Software Engineering