Click here to Skip to main content

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, embarrasing 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... PinprofessionalPIEBALDconsult29-Aug-13 14:51 
JokeRe: Mmmm! The smell of happy users, and happy maintenence coders... Pinmemberrichcb4-Sep-13 11:28 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... PinmemberJean A Brandelero9-Sep-13 7:16 
GeneralRe: Mmmm! The smell of happy users, and happy maintenence coders... PinmemberMarkRHolbrook6-Sep-13 3:13 
GeneralIf only there were a language construct to handle this case... Pinmemberlewax0013-Aug-13 7:43 
GeneralRe: If only there were a language construct to handle this case... PinmemberRob Grainger15-Aug-13 0:10 
GeneralRe: If only there were a language construct to handle this case... Pinmemberlewax0015-Aug-13 3:49 
GeneralRe: If only there were a language construct to handle this case... PinmemberDan Neely19-Aug-13 3:24 
GeneralRe: If only there were a language construct to handle this case... PinmemberRob Grainger26-Aug-13 22:27 
GeneralI just made a secret GOTO Pinmemberpeterchen13-Aug-13 7:15 
GeneralRe: I just made a secret GOTO PinmemberJacek Gajek13-Aug-13 23:40 
GeneralRe: I just made a secret GOTO PinmemberArgonia13-Aug-13 23:53 
GeneralRe: I just made a secret GOTO PinmemberFreak3013-Aug-13 23:50 
GeneralRe: I just made a secret GOTO Pinmemberpeterchen14-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 PinmemberSuper Lloyd6-Aug-13 21:03 
JokeRe: Something original PinmemberArgonia6-Aug-13 21:24 
GeneralRe: Something original PinmemberSuper Lloyd7-Aug-13 2:57 
GeneralRe: Something original PinmemberBotCar6-Aug-13 22:01 
GeneralRe: Something original PinmemberArgonia6-Aug-13 23:36 
GeneralRe: Something original PinmemberMarkRHolbrook6-Sep-13 3:20 
GeneralRe: Something original PinmemberMarkRHolbrook6-Sep-13 6:18 
GeneralRe: Something original PinprofessionalAlexCode6-Aug-13 23:45 
GeneralRe: Something original PinmemberArgonia7-Aug-13 0:19 
GeneralRe: Something original PinprofessionalAlexCode7-Aug-13 1:09 
GeneralRe: Something original PinmemberSuper Lloyd7-Aug-13 3:00 
GeneralRe: Something original PinprofessionalPIEBALDconsult7-Aug-13 4:41 
GeneralRe: Something original PinmemberSentenryu7-Aug-13 9:18 
GeneralRe: Something original PinmemberSuper Lloyd7-Aug-13 14:13 
GeneralRe: Something original PinprofessionalBrisingr Aerowing8-Aug-13 2:38 
GeneralRe: Something original PinmemberJacek Gajek13-Aug-13 5:45 
GeneralRe: Something original PinmemberSentenryu13-Aug-13 6:32 
GeneralRe: Something original PinmemberJacek Gajek13-Aug-13 23:21 
GeneralRe: Something original PinmemberSentenryu14-Aug-13 3:22 
GeneralRe: Something original PinmemberJacek Gajek14-Aug-13 4:21 
GeneralRe: Something original PinmemberBCantor13-Aug-13 5:05 
GeneralRe: Something original PinmemberJacek Gajek13-Aug-13 5:51 
GeneralRe: Something original PinprofessionalBrisingr Aerowing19-Aug-13 16:20 
GeneralRe: Something original PingroupExcellentOrg21-Aug-13 0:04 
RantFsking ASP.NET! PinprofessionalRichard Deeming6-Aug-13 10:00 
GeneralRe: Fsking ASP.NET! PinprofessionalBernhard Hiller6-Aug-13 20:57 
GeneralRe: Fsking ASP.NET! PinmemberSentenryu7-Aug-13 9:08 
GeneralWhen things to more than you think Pinmemberimagiro6-Aug-13 7:17 
GeneralRe: When things to more than you think PinmemberSuper Lloyd6-Aug-13 21:13 
GeneralUndoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly5-Aug-13 7:52 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberMatt U.5-Aug-13 8:10 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly5-Aug-13 9:22 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberMatt U.5-Aug-13 10:02 
GeneralRe: Undoubtedly this is my own ignorance in glorious action but... PinmemberAndy Bantly6-Aug-13 10:54 
GeneralSo you think you know what double.Parse does? Pinmemberharold aptroot2-Aug-13 23:27 
GeneralRe: So you think you know what double.Parse does? PinprofessionalPIEBALDconsult3-Aug-13 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid