Click here to Skip to main content
14,425,450 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: I think my WTF per minute counter just overflowed... Pin
PeejayAdams4-Sep-19 7:07
MemberPeejayAdams4-Sep-19 7:07 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 23:50
MemberRob Grainger4-Sep-19 23:50 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Greg Utas4-Sep-19 8:20
professionalGreg Utas4-Sep-19 8:20 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Rob Grainger4-Sep-19 23:51
MemberRob Grainger4-Sep-19 23:51 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
MarkTJohnson4-Sep-19 9:00
professionalMarkTJohnson4-Sep-19 9:00 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Jacek Gajek1-Oct-19 12:39
MemberJacek Gajek1-Oct-19 12:39 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
kmoorevs4-Sep-19 13:06
Memberkmoorevs4-Sep-19 13:06 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Bernhard Hiller5-Sep-19 23:41
MemberBernhard Hiller5-Sep-19 23:41 
I see...
They tried to make the thing future proof, and provide a possibility to seamlessly add more special cases (count == 3 etc). But then they forgot to safeguard this code block from currently invalid values...

The great handling of Dates looks like that of a special colleague of mine: Convert.ToDateTime("31 OCT 2015") and ((DateTime)fcharge.DateRaised).Date. At least, they did not invent their own Date.Equals function (or did they?).
And then followed by the very clear naming of a variable raisedon25th - yeah, what's special about the 25th? Oh, nothing, that's just part of the variable name...
Thumbs Up | :thumbsup:
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

JokeRe: I think my WTF per minute counter just overflowed... PinPopular
Fueled By Caffeine9-Sep-19 4:22
MemberFueled By Caffeine9-Sep-19 4:22 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Private Dobbs30-Oct-19 23:32
MemberPrivate Dobbs30-Oct-19 23:32 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
#realJSOP9-Sep-19 6:21
mva#realJSOP9-Sep-19 6:21 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Keith Barrow15-Oct-19 12:47
professionalKeith Barrow15-Oct-19 12:47 
GeneralRe: I think my WTF per minute counter just overflowed... Pin
Bajaja30-Oct-19 23:13
professionalBajaja30-Oct-19 23:13 
GeneralKotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 11:36
communityengineerraddevus15-Aug-19 11:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Marc Clifton15-Aug-19 12:19
communityengineerMarc Clifton15-Aug-19 12:19 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 13:29
communityengineerraddevus15-Aug-19 13:29 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Ryan Peden15-Aug-19 12:32
staffRyan Peden15-Aug-19 12:32 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus15-Aug-19 13:31
communityengineerraddevus15-Aug-19 13:31 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Member 798912215-Aug-19 21:43
MemberMember 798912215-Aug-19 21:43 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Stuart Dootson15-Aug-19 22:28
professionalStuart Dootson15-Aug-19 22:28 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 2:36
communityengineerraddevus16-Aug-19 2:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
grumpy_nl15-Aug-19 23:41
Membergrumpy_nl15-Aug-19 23:41 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 2:37
communityengineerraddevus16-Aug-19 2:37 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
Richard Deeming16-Aug-19 2:36
communityengineerRichard Deeming16-Aug-19 2:36 
GeneralRe: Kotlin: new(ish) syntax emerges Pin
raddevus16-Aug-19 2:39
communityengineerraddevus16-Aug-19 2:39 

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.