If you want to be successful at anything you need to know when to push through the difficult times and when to quit things that just aren't working. That's the core message of Seth Godin's book The Dip which teaches you when to give up on an idea and when to persevere with it.