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



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

C# - Why are prefixes on fields discouraged?

Updated June 14, 2017 21:05 PM