Take the 2-minute tour ×

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
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

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


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
