Click here to Skip to main content
15,890,336 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: What If Pin
Ra-one28-Jun-11 0:04
Ra-one28-Jun-11 0:04 
GeneralLovely.... Pin
Soulus8321-Jun-11 13:11
Soulus8321-Jun-11 13:11 
GeneralRe: Lovely.... Pin
BobJanova21-Jun-11 23:59
BobJanova21-Jun-11 23:59 
GeneralRe: Lovely.... Pin
djdanlib27-Jun-11 11:19
djdanlib27-Jun-11 11:19 
GeneralThe Whole Codebase I inherited [again] Pin
Keith Barrow21-Jun-11 1:46
professionalKeith Barrow21-Jun-11 1:46 
GeneralRe: The Whole Codebase I inherited [again] Pin
Nagy Vilmos21-Jun-11 2:25
professionalNagy Vilmos21-Jun-11 2:25 
GeneralRe: The Whole Codebase I inherited [again] Pin
Keith Barrow21-Jun-11 5:46
professionalKeith Barrow21-Jun-11 5:46 
GeneralRe: The Whole Codebase I inherited [again] Pin
BobJanova21-Jun-11 23:49
BobJanova21-Jun-11 23:49 
You can reflect generic classes, though it takes a bit of effort for those of us brought up on .Net 1.1 who learnt how it works before generics existed.

There is a reason to do something similar to this: for UI classes, the VS designer can't get its tiny mind around generic control classes, so if you want to be able to drag-drop controls onto the form, you have to make a non-generic subclass. Thus I have this class in a real system:
/// <summary>
/// A picker for PlotIcon values. We only need to create this because
/// the VS designer can't deal with generics.
/// </summary>
public class PlotIconPicker : PickerBase<PlotIcon>
{

}


I haven't come across a reason to do it with things that don't live in the designer, though.
GeneralRe: The Whole Codebase I inherited [again] Pin
Pete O'Hanlon21-Jun-11 7:54
mvePete O'Hanlon21-Jun-11 7:54 
GeneralRe: The Whole Codebase I inherited [again] Pin
Keith Barrow21-Jun-11 9:06
professionalKeith Barrow21-Jun-11 9:06 
GeneralRe: The Whole Codebase I inherited [again] Pin
AspDotNetDev21-Jun-11 10:15
protectorAspDotNetDev21-Jun-11 10:15 
GeneralRe: The Whole Codebase I inherited [again] Pin
JV999921-Jun-11 20:31
professionalJV999921-Jun-11 20:31 
GeneralRe: The Whole Codebase I inherited [again] Pin
Keith Barrow21-Jun-11 21:24
professionalKeith Barrow21-Jun-11 21:24 
GeneralRe: The Whole Codebase I inherited [again] Pin
JV999921-Jun-11 22:07
professionalJV999921-Jun-11 22:07 
GeneralRe: The Whole Codebase I inherited [again] Pin
Keith Barrow22-Jun-11 8:07
professionalKeith Barrow22-Jun-11 8:07 
GeneralRe: The Whole Codebase I inherited [again] Pin
CDP180222-Jun-11 2:12
CDP180222-Jun-11 2:12 
General(Long) For your enjoyment, legacy PHP web site hell [modified] PinPopular
DoctorOwl20-Jun-11 16:17
DoctorOwl20-Jun-11 16:17 
QuestionWhat do you think of my small game made in Windows API RAW? Pin
andyharglesis17-Jun-11 20:36
andyharglesis17-Jun-11 20:36 
AnswerRe: What do you think of my small game made in Windows API RAW? PinPopular
walterhevedeich17-Jun-11 21:38
professionalwalterhevedeich17-Jun-11 21:38 
GeneralRe: What do you think of my small game made in Windows API RAW? Pin
OriginalGriff17-Jun-11 22:33
mveOriginalGriff17-Jun-11 22:33 
AnswerRe: What do you think of my small game made in Windows API RAW? Pin
AspDotNetDev17-Jun-11 22:38
protectorAspDotNetDev17-Jun-11 22:38 
AnswerRe: What do you think of my small game made in Windows API RAW? Pin
H A Tanner18-Jun-11 9:50
H A Tanner18-Jun-11 9:50 
AnswerRe: What do you think of my small game made in Windows API RAW? PinPopular
RobCroll19-Jun-11 21:29
RobCroll19-Jun-11 21:29 
GeneralRe: What do you think of my small game made in Windows API RAW? Pin
Firo Atrum Ventus19-Jun-11 22:07
Firo Atrum Ventus19-Jun-11 22:07 
AnswerRe: What do you think of my small game made in Windows API RAW? Pin
Ravi Sant19-Jun-11 22:26
Ravi Sant19-Jun-11 22:26 

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.