Click here to Skip to main content
15,127,226 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
Richard Deeming15-Oct-21 0:17
mveRichard Deeming15-Oct-21 0:17 
GeneralThat's one way to do it Pin
Kent Sharkey17-Aug-21 11:21
staffKent Sharkey17-Aug-21 11:21 
GeneralRe: That's one way to do it PinPopular
Mike Hankey17-Aug-21 11:38
professionalMike Hankey17-Aug-21 11:38 
JokeRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 11:50
professionalPIEBALDconsult17-Aug-21 11:50 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 12:18
professionalJon McKee17-Aug-21 12:18 
GeneralRe: That's one way to do it Pin
den2k885-Oct-21 22:17
professionalden2k885-Oct-21 22:17 
GeneralRe: That's one way to do it Pin
Dan Neely29-Nov-21 4:23
MemberDan Neely29-Nov-21 4:23 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 12:10
professionalJon McKee17-Aug-21 12:10 
You left out the glorious sister project:
It is also important to know if a number is odd, so additionally I created this other package @samuelmarina/is-odd

Spoiler: It's not just function isOdd(x) { return !isEven(x); } Laugh | :laugh:
GeneralRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 12:14
professionalPIEBALDconsult17-Aug-21 12:14 
GeneralRe: That's one way to do it Pin
Jon McKee17-Aug-21 12:23
professionalJon McKee17-Aug-21 12:23 
GeneralRe: That's one way to do it Pin
jsc4218-Aug-21 23:38
professionaljsc4218-Aug-21 23:38 
GeneralRe: That's one way to do it Pin
Member 798912217-Aug-21 12:31
MemberMember 798912217-Aug-21 12:31 
GeneralRe: That's one way to do it Pin
James Walsh Jr17-Aug-21 14:53
professionalJames Walsh Jr17-Aug-21 14:53 
GeneralRe: That's one way to do it Pin
Brisingr Aerowing17-Aug-21 15:08
professionalBrisingr Aerowing17-Aug-21 15:08 
GeneralRe: That's one way to do it Pin
PIEBALDconsult17-Aug-21 15:43
professionalPIEBALDconsult17-Aug-21 15:43 
GeneralRe: That's one way to do it Pin
Peter_in_278017-Aug-21 18:55
professionalPeter_in_278017-Aug-21 18:55 
GeneralRe: That's one way to do it Pin
JohaViss6117-Aug-21 23:32
professionalJohaViss6117-Aug-21 23:32 
GeneralRe: That's one way to do it Pin
Matias Lopez28-Sep-21 8:17
MemberMatias Lopez28-Sep-21 8:17 
GeneralRe: That's one way to do it Pin
Chris Nic17-Aug-21 22:01
MemberChris Nic17-Aug-21 22:01 
GeneralRe: That's one way to do it Pin
Bernhard Hiller17-Aug-21 22:11
MemberBernhard Hiller17-Aug-21 22:11 
JokeRe: That's one way to do it Pin
Daniel Pfeffer19-Aug-21 0:15
professionalDaniel Pfeffer19-Aug-21 0:15 
GeneralRe: That's one way to do it Pin
Member 916705717-Aug-21 22:56
MemberMember 916705717-Aug-21 22:56 
GeneralRe: That's one way to do it Pin
kapalmuks<329-Aug-21 12:55
Memberkapalmuks<329-Aug-21 12:55 
GeneralRe: That's one way to do it Pin
Member 916705729-Aug-21 21:24
MemberMember 916705729-Aug-21 21:24 
GeneralRe: That's one way to do it Pin
KateAshman18-Aug-21 1:07
MemberKateAshman18-Aug-21 1:07 

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.