Click here to Skip to main content
11,490,282 members (33,430 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.

 
GeneralThe Exception to the C# Rules Pin
Brady Kelly15-May-14 19:55
memberBrady Kelly15-May-14 19:55 
GeneralRe: The Exception to the C# Rules Pin
Bernhard Hiller15-May-14 22:54
professionalBernhard Hiller15-May-14 22:54 
GeneralRe: The Exception to the C# Rules Pin
Shameel16-May-14 1:53
professionalShameel16-May-14 1:53 
GeneralRe: The Exception to the C# Rules Pin
Keith Barrow19-May-14 7:28
mentorKeith Barrow19-May-14 7:28 
GeneralRe: The Exception to the C# Rules Pin
Bernhard Hiller19-May-14 23:46
professionalBernhard Hiller19-May-14 23:46 
GeneralRe: The Exception to the C# Rules Pin
cpkilekofp19-Jun-14 10:50
membercpkilekofp19-Jun-14 10:50 
GeneralVB6 code that emits VB6 code Pin
MrChug7-May-14 17:12
memberMrChug7-May-14 17:12 
GeneralI can't set title for this post!!! Pin
Meysam Tolouee2-May-14 19:45
memberMeysam Tolouee2-May-14 19:45 
GeneralRe: I can't set title for this post!!! <- then what's that? You trying to confuse me? Pin
Eddy Vluggen3-May-14 9:25
professionalEddy Vluggen3-May-14 9:25 
GeneralRe: I can't set title for this post!!! Pin
PIEBALDconsult3-May-14 13:14
memberPIEBALDconsult3-May-14 13:14 
GeneralRe: I can't set title for this post!!! Pin
cpkilekofp19-Jun-14 12:05
membercpkilekofp19-Jun-14 12:05 
GeneralSome useful extension methods Pin
Brisingr Aerowing2-May-14 14:41
professionalBrisingr Aerowing2-May-14 14:41 
GeneralRe: Some useful extension methods Pin
PIEBALDconsult2-May-14 15:50
memberPIEBALDconsult2-May-14 15:50 
GeneralRe: Some useful extension methods Pin
robocodeboy13-May-14 22:52
memberrobocodeboy13-May-14 22:52 
I was going to suggest the same.
Basically, instead of writing someType.implements(interface) you write interface.IsAssignableFrom(someType) .

For some reason, when I encountered this method the first time, I thought that an "Implements" method would make more sense, even if they are basically the same.
QuestionRe: Some useful extension methods Pin
Matt T Heffron5-May-14 15:45
professionalMatt T Heffron5-May-14 15:45 
AnswerRe: Some useful extension methods Pin
Brisingr Aerowing5-May-14 16:30
professionalBrisingr Aerowing5-May-14 16:30 
GeneralRe: Some useful extension methods Pin
BobJanova6-May-14 1:43
memberBobJanova6-May-14 1:43 
GeneralThinking Inside the Box Pin
kmoorevs24-Apr-14 13:11
memberkmoorevs24-Apr-14 13:11 
GeneralRe: Thinking Inside the Box Pin
ahmed zahmed28-Apr-14 8:35
memberahmed zahmed28-Apr-14 8:35 
GeneralRe: Thinking Inside the Box Pin
Nagy Vilmos29-Apr-14 12:05
professionalNagy Vilmos29-Apr-14 12:05 
GeneralRe: Thinking Inside the Box Pin
kmoorevs29-Apr-14 12:51
memberkmoorevs29-Apr-14 12:51 
GeneralRe: Thinking Inside the Box Pin
OriginalGriff30-Apr-14 9:13
protectorOriginalGriff30-Apr-14 9:13 
GeneralRe: Thinking Inside the Box Pin
Argonia30-Apr-14 6:00
professionalArgonia30-Apr-14 6:00 
GeneralRe: Thinking Inside the Box Pin
RyanDev29-Apr-14 13:52
mvpRyanDev29-Apr-14 13:52 
Generalconscious perma-coupling Pin
Duncan Edwards Jones20-Apr-14 13:17
professionalDuncan Edwards Jones20-Apr-14 13:17 
GeneralRe: conscious perma-coupling Pin
Shameel21-Apr-14 1:53
memberShameel21-Apr-14 1:53 
GeneralRe: conscious perma-coupling Pin
BobJanova22-Apr-14 0:58
memberBobJanova22-Apr-14 0:58 
GeneralRe: conscious perma-coupling Pin
Duncan Edwards Jones22-Apr-14 1:10
professionalDuncan Edwards Jones22-Apr-14 1:10 
GeneralRe: conscious perma-coupling Pin
Jacek Gajek30-Apr-14 23:18
memberJacek Gajek30-Apr-14 23:18 
GeneralRtf -WTF: why is it different? Pin
Bernhard Hiller15-Apr-14 5:56
professionalBernhard Hiller15-Apr-14 5:56 
GeneralRe: Rtf -WTF: why is it different? Pin
ledtech315-Apr-14 6:11
memberledtech315-Apr-14 6:11 
GeneralRe: Rtf -WTF: why is it different? Pin
Bernhard Hiller15-Apr-14 21:55
professionalBernhard Hiller15-Apr-14 21:55 
GeneralRe: Rtf -WTF: why is it different? Pin
ledtech316-Apr-14 5:28
memberledtech316-Apr-14 5:28 
GeneralRe: Rtf -WTF: why is it different? Pin
Rob Grainger16-Apr-14 1:08
memberRob Grainger16-Apr-14 1:08 
GeneralRe: Rtf -WTF: why is it different? Pin
Manikandan1011-Jun-14 4:31
professionalManikandan1011-Jun-14 4:31 
General#region Pin
Bernhard Hiller11-Apr-14 3:51
professionalBernhard Hiller11-Apr-14 3:51 
GeneralRe: #region Pin
tgrt11-Apr-14 4:58
membertgrt11-Apr-14 4:58 
GeneralRe: #region Pin
OriginalGriff11-Apr-14 6:41
protectorOriginalGriff11-Apr-14 6:41 
GeneralRe: #region Pin
Bernhard Hiller13-Apr-14 21:40
professionalBernhard Hiller13-Apr-14 21:40 
GeneralRe: #region Pin
OriginalGriff13-Apr-14 22:00
protectorOriginalGriff13-Apr-14 22:00 
GeneralRe: #region Pin
Brisingr Aerowing11-Apr-14 6:46
professionalBrisingr Aerowing11-Apr-14 6:46 
GeneralRe: #region Pin
Shameel21-Apr-14 1:57
memberShameel21-Apr-14 1:57 
GeneralRe: #region Pin
BobJanova11-Apr-14 7:51
memberBobJanova11-Apr-14 7:51 
GeneralRe: #region Pin
Richard Andrew x6411-Apr-14 9:29
professionalRichard Andrew x6411-Apr-14 9:29 
JokeRe: #region Pin
Sander Rossel24-Apr-14 8:33
memberSander Rossel24-Apr-14 8:33 
GeneralRe: #region Pin
Giuseppe Tollini24-May-14 2:05
memberGiuseppe Tollini24-May-14 2:05 
GeneralRe: #region Pin
Bernhard Hiller29-May-14 21:59
professionalBernhard Hiller29-May-14 21:59 
GeneralHow not to create an instance of a singleton Pin
Dennis_E11-Apr-14 0:59
professionalDennis_E11-Apr-14 0:59 
JokeRe: How not to create an instance of a singleton Pin
Nicholas Marty11-Apr-14 1:25
professionalNicholas Marty11-Apr-14 1:25 
GeneralRe: How not to create an instance of a singleton Pin
Marc Clifton11-Apr-14 2:40
protectorMarc Clifton11-Apr-14 2: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
Web03 | 2.8.150520.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid