Thursdays. The new Fridays. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Stephen Price Sent: Thursday, 20 May 2010 2:57 PM To: ozDotNet Subject: Re: How To do something every so often
In summary; if (silky.IsRight && DateTime.Now.DayOfWeek != DayOfWeek.Friday) { var Bill = 1 / 0; } else { programmersWithTooMuchTime++; ozDotNetList++; GregHarrisExceptionalTestMethod(); } I'm sure this could be refactored into the number 42. Also probably needs to be in some kind of recursive loop with a patent. cheers, Stephen On Thu, May 20, 2010 at 2:40 PM, Les Hughes <l...@datarev.com.au<mailto:l...@datarev.com.au>> wrote: silky wrote: I still think Bill's answer was superior, as it also accounts for multiple threads/etc (although, not required in this case). Second to that would be a (if blah > rah; print thing; blah = 0) ...as your tests indicated. You are crazy. Reality can seem that way to some. On hard to read/complexity/whatver... I would argue that for a seasoned developer, using boolean logic isn't anything tricky, nor hard to read when used appropriately. If the hex figure scares you a little, you can throw it into calc.exe to get the value, or even just comment it in. Your argument would be ridiculous. .... according to you. -- Les Hughes l...@datarev.com.au<mailto:l...@datarev.com.au>