What is the difference between analog vs. digital signals? Is there a preference of when to choose each signal type?

Analog: Continuous, time-varying signals
Digital: Discrete values (0 or 1)