back home

Principle of Least Surprise

[Design Principles]

The behavior of an interface, website or even an API should mostly do what most people would expect it to do. For instance, a library function such as convertIntegerToString() should accept an integer and return a string.