Click here to Skip to main content
15,879,348 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.

 
GeneralRe: Reversing a logical ( OR ) Pin
harold aptroot5-Oct-21 21:09
harold aptroot5-Oct-21 21:09 
GeneralRe: Reversing a logical ( OR ) Pin
Phil Hodgkins5-Oct-21 22:28
Phil Hodgkins5-Oct-21 22:28 
GeneralRe: Reversing a logical ( OR ) Pin
Rob Grainger14-Oct-21 10:06
Rob Grainger14-Oct-21 10:06 
GeneralRe: Reversing a logical ( OR ) Pin
Richard Deeming14-Oct-21 23:17
mveRichard Deeming14-Oct-21 23:17 
GeneralThat's one way to do it Pin
Kent Sharkey17-Aug-21 10:21
staffKent Sharkey17-Aug-21 10:21 
GeneralRe: That's one way to do it PinPopular
Mike Hankey17-Aug-21 10:38
mveMike Hankey17-Aug-21 10:38 
JokeRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 10:50
mvePIEBALDconsult17-Aug-21 10:50 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 11:18
professionalJon McKee17-Aug-21 11: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 OMG | :OMG:

GeneralRe: That's one way to do it Pin
den2k885-Oct-21 21:17
professionalden2k885-Oct-21 21:17 
GeneralRe: That's one way to do it Pin
Dan Neely29-Nov-21 3:23
Dan Neely29-Nov-21 3:23 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 11:10
professionalJon McKee17-Aug-21 11:10 
GeneralRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 11:14
mvePIEBALDconsult17-Aug-21 11:14 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 11:23
professionalJon McKee17-Aug-21 11:23 
GeneralRe: That's one way to do it Pin
jsc4218-Aug-21 22:38
professionaljsc4218-Aug-21 22:38 
GeneralRe: That's one way to do it Pin
kalberts17-Aug-21 11:31
kalberts17-Aug-21 11:31 
GeneralRe: That's one way to do it Pin
James Walsh Jr17-Aug-21 13:53
professionalJames Walsh Jr17-Aug-21 13:53 
GeneralRe: That's one way to do it Pin
Brisingr Aerowing17-Aug-21 14:08
professionalBrisingr Aerowing17-Aug-21 14:08 
GeneralRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 14:43
mvePIEBALDconsult17-Aug-21 14:43 
GeneralRe: That's one way to do it Pin
Peter_in_278017-Aug-21 17:55
professionalPeter_in_278017-Aug-21 17:55 
GeneralRe: That's one way to do it Pin
JohaViss6117-Aug-21 22:32
professionalJohaViss6117-Aug-21 22:32 
GeneralRe: That's one way to do it Pin
Matias Lopez28-Sep-21 7:17
Matias Lopez28-Sep-21 7:17 
GeneralRe: That's one way to do it Pin
Chris Nic17-Aug-21 21:01
Chris Nic17-Aug-21 21:01 
GeneralRe: That's one way to do it Pin
Bernhard Hiller17-Aug-21 21:11
Bernhard Hiller17-Aug-21 21:11 
JokeRe: That's one way to do it Pin
Daniel Pfeffer18-Aug-21 23:15
professionalDaniel Pfeffer18-Aug-21 23:15 
GeneralRe: That's one way to do it Pin
Member 916705717-Aug-21 21:56
Member 916705717-Aug-21 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.