Click here to Skip to main content
15,900,495 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: Why DataSet always returns null? Pin
Paul Conrad28-Jun-08 5:08
professionalPaul Conrad28-Jun-08 5:08 
GeneralRe: Why DataSet always returns null? Pin
blackjack215026-Jun-08 21:50
blackjack215026-Jun-08 21:50 
GeneralRe: Why DataSet always returns null? Pin
MarkB77727-Jun-08 16:12
MarkB77727-Jun-08 16:12 
GeneralRe: Why DataSet always returns null? Pin
kiennt29-Jun-08 18:35
kiennt29-Jun-08 18:35 
GeneralRe: Why DataSet always returns null? Pin
Anthony Mushrow30-Jun-08 0:40
professionalAnthony Mushrow30-Jun-08 0:40 
GeneralRe: Why DataSet always returns null? Pin
Ri Qen-Sin30-Jun-08 4:59
Ri Qen-Sin30-Jun-08 4:59 
GeneralRe: Why DataSet always returns null? Pin
Kenny McKee30-Jun-08 5:22
Kenny McKee30-Jun-08 5:22 
GeneralHere is another one for try...catch Pin
che33582-Jul-08 5:16
che33582-Jul-08 5:16 
His purpose was to clear object DataSet in section finally. But, do you guys think the DataSet will be cleared if no error is caught?

private bool CheckData()
{
    DataSet ds = null;
    try
    {
       //Get Data, and fill ds
       //if there is data in the ds's table
       return true;
    }
    catch{}
    finally
    {
       ds = null;
    }

    return false;
}  

GeneralRe: Here is another one for try...catch Pin
Lieutenant Frost18-Jul-08 9:42
Lieutenant Frost18-Jul-08 9:42 
GeneralSelf Referential Madness Pin
Brady Kelly25-Jun-08 5:46
Brady Kelly25-Jun-08 5:46 
GeneralRe: Self Referential Madness Pin
PIEBALDconsult25-Jun-08 6:15
mvePIEBALDconsult25-Jun-08 6:15 
GeneralRe: Self Referential Madness Pin
_Maxxx_25-Jun-08 12:36
professional_Maxxx_25-Jun-08 12:36 
GeneralAnother loop bites the dust PinPopular
_Maxxx_24-Jun-08 13:49
professional_Maxxx_24-Jun-08 13:49 
GeneralRe: Another loop bites the dust Pin
SomeGuyThatIsMe24-Jun-08 14:47
SomeGuyThatIsMe24-Jun-08 14:47 
GeneralRe: Another loop bites the dust Pin
_Maxxx_24-Jun-08 14:57
professional_Maxxx_24-Jun-08 14:57 
GeneralRe: Another loop bites the dust Pin
PIEBALDconsult24-Jun-08 16:29
mvePIEBALDconsult24-Jun-08 16:29 
GeneralRe: Another loop bites the dust Pin
_Maxxx_24-Jun-08 16:39
professional_Maxxx_24-Jun-08 16:39 
GeneralRe: Another loop bites the dust Pin
Brady Kelly24-Jun-08 21:49
Brady Kelly24-Jun-08 21:49 
GeneralRe: Another loop bites the dust Pin
_Maxxx_25-Jun-08 12:28
professional_Maxxx_25-Jun-08 12:28 
GeneralRe: Another loop bites the dust Pin
PIEBALDconsult25-Jun-08 4:01
mvePIEBALDconsult25-Jun-08 4:01 
GeneralRe: Another loop bites the dust Pin
_Maxxx_25-Jun-08 12:33
professional_Maxxx_25-Jun-08 12:33 
GeneralRe: Another loop bites the dust Pin
PIEBALDconsult26-Jun-08 5:28
mvePIEBALDconsult26-Jun-08 5:28 
GeneralRe: Another loop bites the dust Pin
_Maxxx_26-Jun-08 11:29
professional_Maxxx_26-Jun-08 11:29 
GeneralRe: Another loop bites the dust Pin
SomeGuyThatIsMe25-Jun-08 2:04
SomeGuyThatIsMe25-Jun-08 2:04 
GeneralRe: Another loop bites the dust Pin
Derek Bartram25-Jun-08 1:05
Derek Bartram25-Jun-08 1:05 

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.