« Oracle optimizer is pure voodoo | Main | Air fresheners are evil »

Sometimes one just can't plan ahead

While in the process of looking through code to see what I need to change for my current project I decided to clean up our somewhat bloated constants file. You know, do the thing nobody else ever does? Remove unused constants!

While removing the lonely, unused constants and getting rid of some duplicates (user_id vs userid vs user_identifier that all point to the same string.. and so on..) I decided to remove a constants that will probably return to hunt me at some point. I've decided to live with the consequences of the change. It was either change mucho code to use the constant and be (that dirty word..) consistent or remove it. So I decided to remove it. If we have to change the value in the future, it'll be a lot of work, I admit it, but I'm willing to live with that result of my actions.


Today, I removed..

public static final int ZERO = 0;

RIP, leftovers of NSBCs.

Comments

And isn't amazing how often constants change?

dude, my head just exploded