A pinch of logic, a dash of empathy, and a whole lotta testing.
Don't forget to add a dash of humor, a sprinkle of creativity, and a whole lotta love to your applications, or they'll end up as dry as a plain cracker.