Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Created August 2, 2016 15:50
Show Gist options
  • Save betweenbrain/4fcc55464dae787391158d9edcedbda2 to your computer and use it in GitHub Desktop.
Save betweenbrain/4fcc55464dae787391158d9edcedbda2 to your computer and use it in GitHub Desktop.
Insanity, in code
var doNothing = true;
If(doNothing){
for(var i = 0, i <> sane, i++){
doNothingAgainAndExpectADifferentResult(i);
}
}
@betweenbrain
Copy link
Author

CCpnCode = ccDo.GenerateNewCouponCode(ccpn.coupon_item_no, strFmt);
                        if (CCpnCode == 0)
                        {
                            for (int index = 0; index <= 3; index++)
                            {
                                if (CCpnCode == 0)
                                {
                                    CCpnCode = ccDo.GenerateNewCouponCode(ccpn.coupon_item_no, strFmt);
                                }
                                else
                                {
                                    break;
                                }
                            }
                        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment