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"
Naming is something I take very seriously and really think about a lot while coding as:
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.
Shouldn't your method names usually be verbs to start with? Like your example, you could just use the verb Pay
instead of Perform
+ Payment
.
Edit:
As for how you might use any of the verbs you list (Execute, Do, Run, Perform), I don't think they are necessary at all. They do not convey any additional information. The fact that you are calling (or executing or doing or running or performing) a method is implied by your syntax.
If you'd like to indicate to the caller that your method may return before the action has completed, there is a convention for that in .NET: Begin* and End*.
The only exception I can think of is if you have an abstraction for any general process. In that case, you'll be forced to use a verb such as Execute or Run, since what you're actually doing isn't yet defined.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With