Here are the candidates for the top 7 worst verbs used in function names. I don’t know if programmers invented these, but whoever did was one evil dude.
#7 – dispatch
The best of the worst is ‘dispatch’. Sometimes it might have a real meaning, but unfortunately you get to see this term used badly in code (where you ‘dispatch’ whatever to wherever). Dispatch can be bit meaningless, but I’ll admit sometimes it might do fine.
#6 – do
Whenever I see a function named “doUpdateSomething” (instead of just “updateSomething”) or “doCompression” (instead of “compress”) I grin.
In a bad way.
#5 – resolve
Another “generic” term for something. Instead of “setConnectionBetweenThingOneAndStuffTwo” some programmers say “resolveConnection”. Looks perhaps cool, but name is meaningless.
#4 – handle
Similar to ‘resolve’ (or to ‘do’). Generic, meaningless word.
#3 – manage
When I see this used in “manageArrays” or something similar it hurts my stomach.
#2 – perform
Another horrible term. Thank god you don’t see this often, but even seeing it once is too much. Why say “performCompression” when you can simply say “compress”?
#1 – populate
The most horrible and worst function name ever.
If class has member function ‘populate’ whadda heck do you expect it to do? From the dictionary you can see that ‘populate’ is defined as follows: ‘To supply with inhabitants, as by colonization; people’
Are you supplying your classes with inhabitants?
P.S. These of courses are final truths and should be accepted without questioning, but since some people refuse to do that then you can alternatively stick to using some of this stuff but also think if you currently code using some generic verbs that have very little meaning.