Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have a method that checks a database to make sure that it contains all the necessary schemas for a given version of the application to function. There are many versions in the wild. If the database contains out of date schemas or none at all then the method creates/updates the database to the latest state and returns true.

What could I call this method? I know this is a subjective question, but I feel like there is a proper term that can convey the behavior of this method without being too verbose like verifyAndUpateAppSchemas or buildMissingSchemaAssets. Thanks.

share|improve this question

closed as not constructive by Mark Trapp Feb 3 '12 at 7:17

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

verifyAndUpateAppSchemas sounds fine to me. Concise method names are great, but don't be a afraid to make them a little longer, if this aids in understanding their function. –  PersonalNexus Feb 3 '12 at 5:57
Hi bitly, naming questions like this are not a good fit or the Stack Exchange style of Q&A: there isn't a universal naming standard, so what you call methods ultimately is localized to agreement amongst your specific team. –  user8 Feb 3 '12 at 7:19
add comment

1 Answer

I would say initDb(). I used this function name all the time. Its clean and descriptive.

share|improve this answer
I like your style, but the method to which I refer is actually a private method that is called by a public "initDB" method containing other functionality (such as populating the aforementioned app schemas with some default data) –  bitly Feb 3 '12 at 6:13
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.