So I was looking at some code that was checked in and I got all puzzled over:
// Amount of days before cancellation can't be done
enum Cancellation { Limit = 2 };
Asking the guy who checked it in he argued that it's much better to use enums instead of static variables, bettern than this:
private static int CANCELLATION_LIMIT = 2;
So we started arguing. My argument was that he was using enum as a way to store values (it'll break if there were two enum symbols with the same value). He argued it was an antipattern to have static variables in a class.
My question is what best practice should be used for either?