In computer engineering, more precisely pertaining more to the design of user interfaces, the "principle of least surprise" is a design principle where an interface is supposed to be similar to previously designed interfaces for the sake of continuity.
For instance, a good example of a violation of the principle of least surprise, would be the usage of a diskette icon to close the program instead of saving the current state of the program.