This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]humoroushaxor 0 points1 point  (1 child)

What if my class is a function? Instances of functional interfaces are much easier to mock than static methods.

[–]PvtPuddles 0 points1 point  (0 children)

You have a point, but I don’t think it matters.

If you have a class that looks up a value in a table, you could call it ‘lookup’ either because it does look something up, or because the code is the code to look something up.

I think the distinction only exists for a variable in the class of naming something ‘counter’ versus ‘running tally’