How to avoid getting stuck when programming?