Created
January 23, 2015 15:38
-
-
Save accidentaldeveloper/ef44f5be0b585c5810a0 to your computer and use it in GitHub Desktop.
Force yourself to fix an ugly hack by a certain date, before you forget about it entirely
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Conditional("DEBUG")] | |
public void HackTimeBomb(DateTime expiration) | |
{ | |
if (DateTime.Today > expiration) | |
throw new InvalidOperationException("Bzzz! Your hack has expired!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by https://twitter.com/OdeToCode/status/558326843661893632 and http://ayende.com/blog/2066/hack-bombing