3 ms·
Oh, who gives a fuck? "Set up", "clean up", and "tear down" are used all the time in modern English, without interposing the direct object between the words, e
by bitwize 12y ago
Oh, who gives a fuck?
"Set up", "clean up", and "tear down" are used all the time in modern English, without interposing the direct object between the words, e.g.:
"Let's set up camp here."
"Clean up your room."
"Mr. Gorbachev, tear down this wall!"
So maybe if we were following the rules of CamelCase strictly, it would be setUpTestCase() or similar, but ultimately as long as what is meant is clear IT DOESN'T MATTER.
- pkulak 12y agoThere are only two hard problems in computer science...
- zimpenfish 12y ago1. Off-by-one errors
- jccc 12y agoDoes setupTestCase() return a setup test case, or does it set up a test case? Putting a little thought into clarity of naming can save a lot of repeated effort reading the code in the future. Little things add up.
- protomyth 12y agoNice summarization of an article in one sentence. I guess I am going to have to be a little more careful naming by methods. I might just avoid this type of word in the future.
- bentcorner 12y agoContext matters. TestCase.setupTestCase() sets the test case up, while TestCase TestHarness.setupTestCase() returns the setup test case. A better name for the former would be TestCase.Setup(), and a better name for the latter would be GetSetupTestCase().
- dilap 12y agoYeah, I think this is just a snapshot of language evolving. "setup" and "cleanup" just feel like complete, whole verbs to me. One of the first comments on 'setup' on m-w.com is "most people think this spelling can be used as a verb". Check back in 15 years and see where we stand :)
- jcbrand 12y agoYou missed the point. The point is not that one should always write words in between, the point is that these compound verbs should not be written as single words. "I set up the computer", not "I setup the computer".