Click here to Skip to main content
11,502,559 members (66,947 online)

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, embarrasing 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: If in doubt: cast, cast and cast again Pin
RyanDev15-Nov-13 8:02
memberRyanDev15-Nov-13 8:02 
GeneralNone [modified] Pin
PIEBALDconsult1-Nov-13 11:41
professionalPIEBALDconsult1-Nov-13 11:41 
GeneralRe: None Pin
contracting19951-Nov-13 23:58
membercontracting19951-Nov-13 23:58 
JokeRe: None Pin
Paulo Augusto Künzel5-Nov-13 6:44
professionalPaulo Augusto Künzel5-Nov-13 6:44 
GeneralRe: None Pin
contracting20005-Nov-13 22:07
membercontracting20005-Nov-13 22:07 
GeneralRe: None Pin
Mohamad M. Mohamad7-Nov-13 4:09
memberMohamad M. Mohamad7-Nov-13 4:09 
GeneralRe: None Pin
thatraja7-Nov-13 4:38
mvpthatraja7-Nov-13 4:38 
GeneralRe: None Pin
Rohan Leuva7-Nov-13 17:38
professionalRohan Leuva7-Nov-13 17:38 
GeneralRe: None Pin
Keith Barrow11-Nov-13 22:29
mentorKeith Barrow11-Nov-13 22:29 
GeneralIt's taking a while but at least its working its way through that import (comments not added/edited by me) Pin
JMK8924-Oct-13 22:58
memberJMK8924-Oct-13 22:58 
GeneralBlast you Vilmos and Your Clever Cleverness! [modified] Pin
Nagy Vilmos23-Oct-13 23:31
professionalNagy Vilmos23-Oct-13 23:31 
GeneralRe: Blast you Vilmos and Your Clever Cleverness! Pin
PIEBALDconsult24-Oct-13 17:42
professionalPIEBALDconsult24-Oct-13 17:42 
GeneralLets poll no matter what time of the day Pin
virang_2123-Oct-13 13:01
membervirang_2123-Oct-13 13:01 
GeneralRe: Lets poll no matter what time of the day Pin
Bernhard Hiller23-Oct-13 20:51
professionalBernhard Hiller23-Oct-13 20:51 
Your code snippet is not complete. You forgot e.g. systemSFDCStartHour and systemSFDCStartMilliSecond. Also code for non-American locales is missing. You can add several hundred lines more of useless code before that return true statement, there is a lot of space for future optimizations!
GeneralRe: Lets poll no matter what time of the day Pin
Kornfeld Eliyahu Peter23-Oct-13 21:02
professionalKornfeld Eliyahu Peter23-Oct-13 21:02 
GeneralRe: Lets poll no matter what time of the day Pin
OriginalGriff23-Oct-13 21:25
protectorOriginalGriff23-Oct-13 21:25 
GeneralI don't know how to label this pattern. Pin
Andy Brummer23-Oct-13 11:54
sitebuilderAndy Brummer23-Oct-13 11:54 
GeneralRe: I don't know how to label this pattern. Pin
Brisingr Aerowing23-Oct-13 12:54
professionalBrisingr Aerowing23-Oct-13 12:54 
GeneralRe: I don't know how to label this pattern. Pin
Andy Brummer23-Oct-13 15:58
sitebuilderAndy Brummer23-Oct-13 15:58 
GeneralRe: I don't know how to label this pattern. Pin
Freak3023-Oct-13 22:43
memberFreak3023-Oct-13 22:43 
GeneralCatastrophic Failure! Pin
Brisingr Aerowing18-Oct-13 11:15
professionalBrisingr Aerowing18-Oct-13 11:15 
GeneralRe: Catastrophic Failure! Pin
PIEBALDconsult18-Oct-13 13:27
professionalPIEBALDconsult18-Oct-13 13:27 
JokeRe: Catastrophic Failure! Pin
Matt T Heffron18-Oct-13 13:51
professionalMatt T Heffron18-Oct-13 13:51 
GeneralRe: Catastrophic Failure! Pin
PIEBALDconsult18-Oct-13 14:04
professionalPIEBALDconsult18-Oct-13 14:04 
GeneralRe: Catastrophic Failure! Pin
Brisingr Aerowing18-Oct-13 14:25
professionalBrisingr Aerowing18-Oct-13 14:25 
GeneralRe: Catastrophic Failure! Pin
vonb22-Oct-13 1:07
professionalvonb22-Oct-13 1:07 
GeneralRe: Catastrophic Failure! Pin
Argonia23-Oct-13 4:49
memberArgonia23-Oct-13 4:49 
GeneralRe: Catastrophic Failure! Pin
Brisingr Aerowing23-Oct-13 12:55
professionalBrisingr Aerowing23-Oct-13 12:55 
GeneralRe: Catastrophic Failure! Pin
BillW335-Nov-13 4:35
professionalBillW335-Nov-13 4:35 
GeneralRe: Catastrophic Failure! Pin
Sentenryu5-Nov-13 6:12
memberSentenryu5-Nov-13 6:12 
GeneralRe: Catastrophic Failure! Pin
BillW335-Nov-13 8:46
professionalBillW335-Nov-13 8:46 
GeneralRe: Catastrophic Failure! Pin
patbob21-Feb-14 5:20
memberpatbob21-Feb-14 5:20 
GeneralWhy bother with any other exception data? The message should suffice. Pin
yiangos17-Oct-13 4:16
professionalyiangos17-Oct-13 4:16 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Sentenryu18-Oct-13 1:06
memberSentenryu18-Oct-13 1:06 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
yiangos23-Oct-13 6:57
professionalyiangos23-Oct-13 6:57 
JokeRe: Why bother with any other exception data? The message should suffice. Pin
RyanDev18-Oct-13 5:15
memberRyanDev18-Oct-13 5:15 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Jacek Gajek19-Oct-13 5:12
memberJacek Gajek19-Oct-13 5:12 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
yiangos23-Oct-13 6:51
professionalyiangos23-Oct-13 6:51 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Bill_Hallahan1-Nov-13 17:35
memberBill_Hallahan1-Nov-13 17:35 
GeneralWhy care about descriptive names? Pin
Jacek Gajek16-Oct-13 21:34
memberJacek Gajek16-Oct-13 21:34 
JokeRe: Why care about descriptive names? Pin
Kornfeld Eliyahu Peter16-Oct-13 21:47
memberKornfeld Eliyahu Peter16-Oct-13 21:47 
GeneralRe: Why care about descriptive names? Pin
Jacek Gajek16-Oct-13 22:03
memberJacek Gajek16-Oct-13 22:03 
GeneralRe: Why care about descriptive names? Pin
Argonia16-Oct-13 23:28
memberArgonia16-Oct-13 23:28 
GeneralRe: Why care about descriptive names? Pin
Nicholas Marty17-Oct-13 4:30
professionalNicholas Marty17-Oct-13 4:30 
GeneralRe: Why care about descriptive names? Pin
phil.o18-Oct-13 4:12
memberphil.o18-Oct-13 4:12 
GeneralRe: Why care about descriptive names? Pin
Jacek Gajek19-Oct-13 5:18
memberJacek Gajek19-Oct-13 5:18 
GeneralHad a Boss Pin
michaelbarb14-Nov-13 8:58
professionalmichaelbarb14-Nov-13 8:58 
GeneralExecutable that requires elevation Pin
Michael Haephrati15-Oct-13 11:21
mvpMichael Haephrati15-Oct-13 11:21 
GeneralRe: Executable that requires elevation Pin
Richard Deeming15-Oct-13 12:11
professionalRichard Deeming15-Oct-13 12:11 
GeneralRe: Executable that requires elevation Pin
Michael Haephrati15-Oct-13 12:40
mvpMichael Haephrati15-Oct-13 12:40 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 2 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid