How Sunk-Cost fallacy is making us write bad code