Is Diff a well understood term, or should I name it Differentiate?

by Chris Wohlert   Last Updated September 21, 2017 09:05 AM

I have a class which checks for differences. I could call this

class ViolationDiffer
    public IEnumerable<ViolationChange> Diff(
        IEnumerable<Violation> old,
        IEnumerable<Violation> new
    );

Or

class ViolationDifferentiator
    public IEnumerable<ViolationChange> Differentiate(
        IEnumerable<Violation> old,
        IEnumerable<Violation> new
    );

To diff two text files, is so common place, that I would guess that almost everybody would understand what this did.

In the spirit of being explicit, Differentiate is just that. Is there a rule for when a term is appropriate to shorten, as in, the shortened version is verbally used maybe?



Related Questions


Method naming: to vs as vs get

Updated April 25, 2018 02:05 AM



Writing readable code and not overdoing it with naming

Updated December 05, 2017 13:05 PM

Why do software use Win32 name?

Updated August 29, 2017 12:05 PM