Click here to Skip to main content
15,912,400 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: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Argonia28-Aug-13 21:31
professionalArgonia28-Aug-13 21:31 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
V.28-Aug-13 21:37
professionalV.28-Aug-13 21:37 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Bernhard Hiller28-Aug-13 21:50
Bernhard Hiller28-Aug-13 21:50 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Thomas Daniels28-Aug-13 22:27
mentorThomas Daniels28-Aug-13 22:27 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Richard Deeming29-Aug-13 2:44
mveRichard Deeming29-Aug-13 2:44 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Nagy Vilmos29-Aug-13 2:46
professionalNagy Vilmos29-Aug-13 2:46 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Bernhard Hiller29-Aug-13 3:43
Bernhard Hiller29-Aug-13 3:43 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
OriginalGriff29-Aug-13 4:00
mveOriginalGriff29-Aug-13 4:00 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
PIEBALDconsult29-Aug-13 4:54
mvePIEBALDconsult29-Aug-13 4:54 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
OriginalGriff29-Aug-13 5:50
mveOriginalGriff29-Aug-13 5:50 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
PIEBALDconsult29-Aug-13 14:51
mvePIEBALDconsult29-Aug-13 14:51 
JokeRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Richard C Bishop4-Sep-13 11:28
professionalRichard C Bishop4-Sep-13 11:28 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
Jean A Brandelero9-Sep-13 7:16
Jean A Brandelero9-Sep-13 7:16 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... Pin
MarkRHolbrook6-Sep-13 3:13
MarkRHolbrook6-Sep-13 3:13 
GeneralIf only there were a language construct to handle this case... Pin
lewax0013-Aug-13 7:43
lewax0013-Aug-13 7:43 
GeneralRe: If only there were a language construct to handle this case... Pin
Rob Grainger15-Aug-13 0:10
Rob Grainger15-Aug-13 0:10 
GeneralRe: If only there were a language construct to handle this case... Pin
lewax0015-Aug-13 3:49
lewax0015-Aug-13 3:49 
GeneralRe: If only there were a language construct to handle this case... Pin
Dan Neely19-Aug-13 3:24
Dan Neely19-Aug-13 3:24 
GeneralRe: If only there were a language construct to handle this case... Pin
Rob Grainger26-Aug-13 22:27
Rob Grainger26-Aug-13 22:27 
GeneralI just made a secret GOTO Pin
peterchen13-Aug-13 7:15
peterchen13-Aug-13 7:15 
GeneralRe: I just made a secret GOTO Pin
Lutosław13-Aug-13 23:40
Lutosław13-Aug-13 23:40 
GeneralRe: I just made a secret GOTO Pin
Argonia13-Aug-13 23:53
professionalArgonia13-Aug-13 23:53 
GeneralRe: I just made a secret GOTO Pin
Freak3013-Aug-13 23:50
Freak3013-Aug-13 23:50 
GeneralRe: I just made a secret GOTO Pin
peterchen14-Aug-13 1:24
peterchen14-Aug-13 1:24 
That's a bit mroe complex than this simplified example of course (surprisingly, I don't have variales named "thingie" in there) - depending on the forma,t it's read only access or no access at all, indeed.

Since the conversion runs in a separate process, I'm in the middle of a transaction, and I have to be careful to throw more milliseconds into that piece of code, tat "close, convert and retry" seems to be the best approach.

Alternatively, I thought of an inner function that returns either the newly initialized session, or information about how to upgrade, but that code doesn#t look much better either.

NewsSomething original Pin
Super Lloyd6-Aug-13 21:03
Super Lloyd6-Aug-13 21:03 

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.