I never understood why people resign without actually talking to their bosses about their work issues.
I resigned two weeks from my job because talking was fruitless. Even the MD made excuses for the terrible work conditions. Now another colleague wants to resign after they made him a terrible offer to keep him. One thing I have learnt is that most senior managers don't care about their staff, more so developers.