The cover of the book The Practice of Programming lists programming principles:
Intuitively I understand generality as preferring to solve the general problem rather than the specific form in which the problem presents itself. For example a sort function should be able to sort anything that is comparable instead of just ints. However, that seems like a contrived example.
What are some better examples of generality?