‘Shutdown’ or ‘Shut Down’?

Which one is correct?

ShutDown()
or
Shutdown()

I’m not quite sure. Seems many Windows API calls reference it as Shutdown. Not being convinced, I did a Google search, and found an article on The Old New Thing that summarizes why there is confusion.

Basically, it boils down to this:

shutdown = noun

shut down = verb

So, my method is called ShutDown, because methods should be action phrases (verbs). The enum value will be Shutdown, because that’s a noun (the state of something).

Who says all those grammar classes in grade school don’t apply to programming?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.