Instead of seeing fitness as a temporary thing where you diet and exercise for just a few months, see it as a life long thing, a lifestyle. That way, you will much more likely to reach your fitness goals and stay there for the long run. You also won't be as easily discouraged by short term setbacks.