This joke works in Spanish too, where "closet" is also armario. A variation might work in English:tokumaru wrote:It only "makes sense" because "armário" rhymes with "Mario"
-Do you know Hubbard?
-What Hubbard?
-The one that banged you behind the cupboard!
Code designed to be copied and pasted is called a library, and the ability of a piece of code to act as a library is called modularity. Yes, people who write libraries should state the pre- and post-conditions of each function (whether defined, implementation-defined, unspecified, or undefined), and people who use libraries should understand the pre- and post-conditions of each function and should not depend on any behavior that isn't defined. Otherwise, you get DLL hell when people depend on undocumented behaviors of the library.I think people should understand exactly what goes on with a piece of code that was copied and pasted. If they don't, there might just be a case where this code misbehaves (when compared to their expectations) and they are just buying themselves some nasty bugs, while they could have coded something specifically tailored to their needs, and have no nasty surprises.

