Click here to Skip to main content
15,889,614 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: Obsure ASP.Net Bug? Pin
musefan21-Jan-11 9:22
musefan21-Jan-11 9:22 
GeneralRe: Obsure ASP.Net Bug? Pin
AspDotNetDev21-Jan-11 9:29
protectorAspDotNetDev21-Jan-11 9:29 
JokeFunction that just to fill an empty space .... Pin
red_moon17-Jan-11 23:00
red_moon17-Jan-11 23:00 
GeneralRe: Function that just to fill an empty space .... Pin
PIEBALDconsult18-Jan-11 2:09
mvePIEBALDconsult18-Jan-11 2:09 
GeneralRe: Function that just to fill an empty space .... Pin
red_moon18-Jan-11 14:35
red_moon18-Jan-11 14:35 
GeneralRe: Function that just to fill an empty space .... Pin
Jörgen Andersson19-Jan-11 20:11
professionalJörgen Andersson19-Jan-11 20:11 
GeneralRe: Function that just to fill an empty space .... Pin
fjdiewornncalwe18-Jan-11 5:41
professionalfjdiewornncalwe18-Jan-11 5:41 
GeneralPRE Tagged Pin
AspDotNetDev18-Jan-11 9:48
protectorAspDotNetDev18-Jan-11 9:48 
PRE tags please!
SQL
FUNCTION f_init
        RETURN VARCHAR2
    IS
        vssqlerrm VARCHAR2 (255);
        vsvalidation VARCHAR2 (255);
    BEGIN
        vssqlerrm := '';
        vsvalidation := '';
        RETURN vsvalidation;
    EXCEPTION
        WHEN OTHERS
            THEN
            BEGIN
                vssqlerrm := SQLERRM;
                vsvalidation := vssqlerrm;
            END;
    END;

I'm not familiar with that language, but it looks a bit like it's a function that returns an empty string and has some unecessary exception handling. Quite the horror!

JokeRe: PRE Tagged Pin
fjdiewornncalwe18-Jan-11 10:40
professionalfjdiewornncalwe18-Jan-11 10:40 
GeneralRe: PRE Tagged Pin
AspDotNetDev18-Jan-11 10:44
protectorAspDotNetDev18-Jan-11 10:44 
GeneralRe: PRE Tagged Pin
Jörgen Andersson19-Jan-11 20:01
professionalJörgen Andersson19-Jan-11 20:01 
GeneralRe: Function that just to fill an empty space .... Pin
Jörgen Andersson19-Jan-11 20:03
professionalJörgen Andersson19-Jan-11 20:03 
GeneralI don't care about your naming convention, just be consistent [modified] PinPopular
wizardzz17-Jan-11 6:00
wizardzz17-Jan-11 6:00 
GeneralRe: I don't care about your naming convention, just be consistent Pin
OriginalGriff17-Jan-11 8:15
mveOriginalGriff17-Jan-11 8:15 
GeneralRe: I don't care about your naming convention, just be consistent [modified] Pin
wizardzz17-Jan-11 8:24
wizardzz17-Jan-11 8:24 
GeneralRe: I don't care about your naming convention, just be consistent Pin
OriginalGriff17-Jan-11 8:35
mveOriginalGriff17-Jan-11 8:35 
GeneralRe: I don't care about your naming convention, just be consistent Pin
wizardzz18-Jan-11 4:22
wizardzz18-Jan-11 4:22 
GeneralRe: I don't care about your naming convention, just be consistent Pin
Yusuf18-Jan-11 3:58
Yusuf18-Jan-11 3:58 
GeneralRe: I don't care about your naming convention, just be consistent Pin
wizardzz18-Jan-11 4:20
wizardzz18-Jan-11 4:20 
GeneralRe: I don't care about your naming convention, just be consistent Pin
OriginalGriff18-Jan-11 5:28
mveOriginalGriff18-Jan-11 5:28 
GeneralRe: I don't care about your naming convention, just be consistent Pin
Yusuf18-Jan-11 5:57
Yusuf18-Jan-11 5:57 
GeneralRe: I don't care about your naming convention, just be consistent Pin
rentzk19-Jan-11 6:12
rentzk19-Jan-11 6:12 
GeneralRe: I don't care about your naming convention, just be consistent Pin
Ravi Bhavnani19-Jan-11 8:10
professionalRavi Bhavnani19-Jan-11 8:10 
GeneralRe: I don't care about your naming convention, just be consistent Pin
OriginalGriff19-Jan-11 8:19
mveOriginalGriff19-Jan-11 8:19 
GeneralRe: I don't care about your naming convention, just be consistent Pin
rentzk19-Jan-11 8:56
rentzk19-Jan-11 8:56 

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.