Click here to Skip to main content
15,884,472 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: Testing the obvious.... Pin
mbb0116-Dec-10 21:25
mbb0116-Dec-10 21:25 
GeneralRe: Testing the obvious.... Pin
R. Erasmus16-Dec-10 21:36
R. Erasmus16-Dec-10 21:36 
GeneralRe: Testing the obvious.... Pin
R. Erasmus16-Dec-10 21:34
R. Erasmus16-Dec-10 21:34 
GeneralRe: Testing the obvious.... Pin
Hosey^16-Dec-10 22:28
Hosey^16-Dec-10 22:28 
GeneralRe: Testing the obvious.... Pin
sjelen16-Dec-10 23:48
professionalsjelen16-Dec-10 23:48 
GeneralRe: Testing the obvious.... Pin
Dietmar Kern17-Dec-10 3:09
Dietmar Kern17-Dec-10 3:09 
GeneralRe: Testing the obvious.... Pin
sjelen17-Dec-10 6:13
professionalsjelen17-Dec-10 6:13 
GeneralRe: Testing the obvious.... Pin
ely_bob17-Dec-10 7:58
professionalely_bob17-Dec-10 7:58 
Laugh | :laugh: Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:
.. ...
C#
try
{
     retry:
     while (filename = EmptyString)
     {
            if(Len(fileName) == 0)
            {
                 fileName = Left(DBEngine.Workspaces(0).Databases(0).Name, i) & "REF"
            }
    }
}
catch
{ 
    goto retry;
}
filename = "";


Laugh | :laugh: Laugh | :laugh: Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:




.... just trying to see how many people will complain about this.... Poke tongue | ;-P

I'd blame it on the Brain farts.. But let's be honest, it really is more like a Methane factory between my ears some days then it is anything else...

-----

"The conversations he was having with himself were becoming ominous."-.. On the radio...




GeneralIDataAccessLayer Pin
ColinBashBash15-Dec-10 11:46
ColinBashBash15-Dec-10 11:46 
GeneralRe: IDataAccessLayer Pin
GibbleCH16-Dec-10 3:37
GibbleCH16-Dec-10 3:37 
GeneralRe: IDataAccessLayer Pin
peterchen16-Dec-10 21:25
peterchen16-Dec-10 21:25 
GeneralRe: IDataAccessLayer Pin
Jason Vetter16-Dec-10 4:03
Jason Vetter16-Dec-10 4:03 
GeneralRe: IDataAccessLayer Pin
_Erik_16-Dec-10 5:22
_Erik_16-Dec-10 5:22 
Jokeone indian song for the salary Pin
Pranay Rana14-Dec-10 19:35
professionalPranay Rana14-Dec-10 19:35 
GeneralRe: one indian song for the salary Pin
BillW3315-Dec-10 3:11
professionalBillW3315-Dec-10 3:11 
GeneralRe: one indian song for the salary Pin
Chris Meech15-Dec-10 5:06
Chris Meech15-Dec-10 5:06 
GeneralRe: one indian song for the salary Pin
BillW3315-Dec-10 13:40
professionalBillW3315-Dec-10 13:40 
GeneralRe: one indian song for the salary Pin
HimanshuJoshi15-Dec-10 14:30
HimanshuJoshi15-Dec-10 14:30 
GeneralRe: one indian song for the salary Pin
Ravi Sant16-Dec-10 23:27
Ravi Sant16-Dec-10 23:27 
GeneralRe: one indian song for the salary Pin
fjdiewornncalwe15-Dec-10 4:07
professionalfjdiewornncalwe15-Dec-10 4:07 
GeneralRe: one indian song for the salary Pin
HimanshuJoshi15-Dec-10 14:32
HimanshuJoshi15-Dec-10 14:32 
GeneralRe: one indian song for the salary Pin
BillW3317-Dec-10 3:00
professionalBillW3317-Dec-10 3:00 
JokeHow to get the logged in user Pin
NikoTanghe8-Dec-10 4:51
NikoTanghe8-Dec-10 4:51 
JokeRe: How to get the logged in user Pin
Kevin Drzycimski8-Dec-10 9:36
Kevin Drzycimski8-Dec-10 9:36 
GeneralRe: How to get the logged in user Pin
Manfred Rudolf Bihy8-Dec-10 21:29
professionalManfred Rudolf Bihy8-Dec-10 21:29 

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.