Do vs. Run vs. Execute vs. Perform verbs
- by coffeeaddict
Before anyone starts to go nuts and red flag this post saying this is "Subjective" which drives me absolutely nuts because everyone has their own intent why they are posting something others feel are subjective. Subjective is subjective to each person, how about that! So with that let me tell you a couple things so that this post does not get flagged by flag happy moderators:
1) There are community guidlines on specific keywords recommended by certain organizations or people (e.g. Microsoft, Lance Hunt, etc.)
2) I want to know what others are using the most and why. Why they feel this verb reads better than others
3) Books even talk about this verb issue (Uncle Bob, etc.), so it's not subjective
Now to my actual question:
a) What list of verbs are you using for method names? What's your personal or team standard?
b) I debate whether to use Do vs. Run vs. Execute vs. Perform and am wondering if any of these are no longer recommended or some that people just don't really use and I should just scratch them. Basically any one of those verbs mean the same thing...to invoke some process (method call). This is outside of CRUDs. For example:
ExecutePayPalWorkflow();
that could be also any one of these names instead:
DoPayPalWorkflow();
RunPayPalWorkflow();
PerformPayPalWorkflow();
or does it not really matter...because any of those verbs pretty much are understandable as to "what" shows your intent by the other words that follow it "PayPalWorkflow"
This discussion can go for any language. I just put the two main tags C# and Java here which is good enough for me to get some solid answers or experiences.