Click here to Skip to main content
15,884,237 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: zero int? Pin
harold aptroot3-Dec-11 2:14
harold aptroot3-Dec-11 2:14 
AnswerRe: zero int? Pin
Nagy Vilmos21-Nov-11 23:52
professionalNagy Vilmos21-Nov-11 23:52 
GeneralRe: zero int? Pin
CDP180221-Nov-11 23:57
CDP180221-Nov-11 23:57 
GeneralRe: zero int? Pin
Nagy Vilmos21-Nov-11 23:58
professionalNagy Vilmos21-Nov-11 23:58 
GeneralRe: zero int? Pin
CDP180222-Nov-11 0:08
CDP180222-Nov-11 0:08 
GeneralRe: zero int? Pin
PIEBALDconsult22-Nov-11 1:51
mvePIEBALDconsult22-Nov-11 1:51 
GeneralRe: zero int? Pin
CDP180222-Nov-11 2:24
CDP180222-Nov-11 2:24 
GeneralRe: zero int? Pin
Reiss22-Nov-11 2:45
professionalReiss22-Nov-11 2:45 
I have just made this code up to show how horrific you can make it

Define my own type using a name defined in the framework
C#
namespace Dummy
{
    public class Int32
    {
        public Int32()
        {
        }

        public string Value
        {
            get;
            set;
        }
    }
}


Implement it somewhere

C#
using system = Dummy; // note the lower case 's'

namespace AnotherDummy
{
    public class Class1
    {
        public Class1()
        {
            string value = "Hello";

            system.Int32 x = new system.Int32();
            x.Value = value;
        }
    }
}

GeneralRe: zero int? Pin
CDP180222-Nov-11 2:52
CDP180222-Nov-11 2:52 
GeneralRe: zero int? PinPopular
harold aptroot22-Nov-11 2:57
harold aptroot22-Nov-11 2:57 
GeneralRe: zero int? Pin
Reiss22-Nov-11 5:20
professionalReiss22-Nov-11 5:20 
GeneralRe: zero int? Pin
harold aptroot22-Nov-11 0:36
harold aptroot22-Nov-11 0:36 
GeneralRe: zero int? Pin
BobJanova22-Nov-11 0:38
BobJanova22-Nov-11 0:38 
AnswerRe: zero int? Pin
Fabio Franco23-Nov-11 7:16
professionalFabio Franco23-Nov-11 7:16 
AnswerRe: zero int? Pin
KP Lee3-Dec-11 11:18
KP Lee3-Dec-11 11:18 
RantWhy SQL Server sucked on Friday Pin
Gary R. Wheeler20-Nov-11 5:45
Gary R. Wheeler20-Nov-11 5:45 
GeneralRe: Why SQL Server sucked on Friday Pin
OriginalGriff20-Nov-11 6:07
mveOriginalGriff20-Nov-11 6:07 
GeneralRe: Why SQL Server sucked on Friday Pin
Gary R. Wheeler20-Nov-11 7:35
Gary R. Wheeler20-Nov-11 7:35 
GeneralRe: Why SQL Server sucked on Friday Pin
sucram21-Nov-11 1:57
sucram21-Nov-11 1:57 
GeneralPerfect way to show a splash screen Pin
Vladimir Svyatski16-Nov-11 21:08
professionalVladimir Svyatski16-Nov-11 21:08 
GeneralRe: Perfect way to show a splash screen Pin
BobJanova17-Nov-11 0:20
BobJanova17-Nov-11 0:20 
GeneralRe: Perfect way to show a splash screen Pin
Chris Meech17-Nov-11 4:07
Chris Meech17-Nov-11 4:07 
GeneralRe: Perfect way to show a splash screen Pin
BillW3317-Nov-11 5:14
professionalBillW3317-Nov-11 5:14 
GeneralRe: Perfect way to show a splash screen Pin
Johann Gerell22-Nov-11 1:33
Johann Gerell22-Nov-11 1:33 
GeneralRe: Perfect way to show a splash screen Pin
RobCroll17-Nov-11 11:52
RobCroll17-Nov-11 11:52 

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.