15,116,434 members

# The Weird and The Wonderful

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 Re: Reversing a logical ( OR ) harold aptroot5-Oct-21 22:09 harold aptroot 5-Oct-21 22:09
 Re: Reversing a logical ( OR ) Phil Hodgkins5-Oct-21 23:28 Phil Hodgkins 5-Oct-21 23:28
 Re: Reversing a logical ( OR ) Rob Grainger14-Oct-21 11:06 Rob Grainger 14-Oct-21 11:06
 Re: Reversing a logical ( OR ) Richard Deeming15-Oct-21 0:17 Richard Deeming 15-Oct-21 0:17
 That's one way to do it Kent Sharkey17-Aug-21 11:21 Kent Sharkey 17-Aug-21 11:21
 Re: That's one way to do it Mike Hankey17-Aug-21 11:38 Mike Hankey 17-Aug-21 11:38
 Re: That's one way to do it PIEBALDconsult17-Aug-21 11:50 PIEBALDconsult 17-Aug-21 11:50
 Re: That's one way to do it Jon McKee17-Aug-21 12:18 Jon McKee 17-Aug-21 12:18
 I... what?! I thought you were joking for a second but there actually is a definition for even and odd in generic bases. In even bases it's the last-digit test - odd is odd, even is even; in odd bases it's a test of the sum of all digits - odd is odd, even is even. That makes complete sense; it's just not something I've ever considered
 Re: That's one way to do it den2k885-Oct-21 22:17 den2k88 5-Oct-21 22:17
 Re: That's one way to do it Dan Neely29-Nov-21 4:23 Dan Neely 29-Nov-21 4:23
 Re: That's one way to do it Jon McKee17-Aug-21 12:10 Jon McKee 17-Aug-21 12:10
 Re: That's one way to do it PIEBALDconsult17-Aug-21 12:14 PIEBALDconsult 17-Aug-21 12:14
 Re: That's one way to do it Jon McKee17-Aug-21 12:23 Jon McKee 17-Aug-21 12:23
 Re: That's one way to do it jsc4218-Aug-21 23:38 jsc42 18-Aug-21 23:38
 Re: That's one way to do it Member 798912217-Aug-21 12:31 Member 7989122 17-Aug-21 12:31
 Re: That's one way to do it James Walsh Jr17-Aug-21 14:53 James Walsh Jr 17-Aug-21 14:53
 Re: That's one way to do it Brisingr Aerowing17-Aug-21 15:08 Brisingr Aerowing 17-Aug-21 15:08
 Re: That's one way to do it PIEBALDconsult17-Aug-21 15:43 PIEBALDconsult 17-Aug-21 15:43
 Re: That's one way to do it Peter_in_278017-Aug-21 18:55 Peter_in_2780 17-Aug-21 18:55
 Re: That's one way to do it JohaViss6117-Aug-21 23:32 JohaViss61 17-Aug-21 23:32
 Re: That's one way to do it Matias Lopez28-Sep-21 8:17 Matias Lopez 28-Sep-21 8:17
 Re: That's one way to do it Chris Nic17-Aug-21 22:01 Chris Nic 17-Aug-21 22:01
 Re: That's one way to do it Bernhard Hiller17-Aug-21 22:11 Bernhard Hiller 17-Aug-21 22:11
 Re: That's one way to do it Daniel Pfeffer19-Aug-21 0:15 Daniel Pfeffer 19-Aug-21 0:15
 Re: That's one way to do it Member 916705717-Aug-21 22:56 Member 9167057 17-Aug-21 22:56
 Last Visit: 31-Dec-99 19:00     Last Update: 30-Nov-21 10:56 Refresh ᐊ Prev1234567891011 Next ᐅ