While working on large code bases I have often (in half jest) wished for the concept of a runtime performance tax on code that is engineered poorly. Some variants of this could be 
a. Imposing an exponentially increasing programmatic sleep on functions based on their length.
b. Repeated database &#x2F; filesystem &#x2F; network requests for identical resources multiple times in a program should again incur a slowdown.