Click here to Skip to main content
15,881,812 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: Uhhh... Pin
MarkTJohnson21-Apr-21 5:00
professionalMarkTJohnson21-Apr-21 5:00 
GeneralRe: Uhhh... Pin
Gary Wheeler5-May-21 10:51
Gary Wheeler5-May-21 10:51 
GeneralRe: Uhhh... Pin
Brisingr Aerowing7-May-21 13:37
professionalBrisingr Aerowing7-May-21 13:37 
GeneralRe: Uhhh... Pin
Gary Wheeler7-May-21 13:47
Gary Wheeler7-May-21 13:47 
GeneralRe: Uhhh... Pin
Greg Utas7-May-21 14:41
professionalGreg Utas7-May-21 14:41 
GeneralRe: Uhhh... Pin
Gary Wheeler7-May-21 15:01
Gary Wheeler7-May-21 15:01 
GeneralThere are times when I really wonder exactly what I was thinking ... Pin
OriginalGriff29-Mar-21 23:26
mveOriginalGriff29-Mar-21 23:26 
GeneralRe: There are times when I really wonder exactly what I was thinking ... Pin
Marc Clifton6-Apr-21 14:45
mvaMarc Clifton6-Apr-21 14:45 
Exception handling/reporting is something I've never figured out how to do well, especially when writing a web application. The back-end throws an exception. What do you do? Log it somewhere nobody ever looks, least of all me? Do you report it to the front-end?

The front-end has to deal with the back-end exception. What do you do? Display an obtuse message to the user?

The front-end itself generates an exception. Is it even caught? What do you do? Another obtuse message? Or an API endpoint that it calls to log it on the server in a log that no one, least of all me, ever looks at?

I've decided to take a rather drastic approach to very specific problems (like a failure to update an audit table) - I email myself the exception and filter it in Outlook into specific folders. I find it a lot more effective in knowing about the exception and to fix it. Laugh | :laugh:

GeneralRe: There are times when I really wonder exactly what I was thinking ... Pin
Sander Rossel11-Apr-21 0:32
professionalSander Rossel11-Apr-21 0:32 
GeneralRe: There are times when I really wonder exactly what I was thinking ... Pin
Bernhard Hiller6-Apr-21 20:52
Bernhard Hiller6-Apr-21 20:52 
GeneralRe: There are times when I really wonder exactly what I was thinking ... Pin
Dan Neely20-Apr-21 5:39
Dan Neely20-Apr-21 5:39 
GeneralC++ & Thinking about SSD & wear level Pin
raddevus27-Mar-21 11:58
mvaraddevus27-Mar-21 11:58 
GeneralRe: C++ & Thinking about SSD & wear level (updated) Pin
Peter_in_278027-Mar-21 16:03
professionalPeter_in_278027-Mar-21 16:03 
GeneralRe: C++ & Thinking about SSD & wear level (updated) Pin
raddevus27-Mar-21 17:47
mvaraddevus27-Mar-21 17:47 
GeneralRe: C++ & Thinking about SSD & wear level (updated) Pin
David O'Neil28-Mar-21 3:29
professionalDavid O'Neil28-Mar-21 3:29 
GeneralRe: C++ & Thinking about SSD & wear level (updated) Pin
raddevus28-Mar-21 3:37
mvaraddevus28-Mar-21 3:37 
GeneralRe: C++ & Thinking about SSD & wear level Pin
David O'Neil28-Mar-21 4:14
professionalDavid O'Neil28-Mar-21 4:14 
GeneralRe: C++ & Thinking about SSD & wear level Pin
raddevus28-Mar-21 5:11
mvaraddevus28-Mar-21 5:11 
GeneralRe: C++ & Thinking about SSD & wear level Pin
David O'Neil28-Mar-21 11:56
professionalDavid O'Neil28-Mar-21 11:56 
GeneralRe: C++ & Thinking about SSD & wear level Pin
raddevus28-Mar-21 12:50
mvaraddevus28-Mar-21 12:50 
GeneralRe: C++ & Thinking about SSD & wear level Pin
Dan Neely20-Apr-21 5:41
Dan Neely20-Apr-21 5:41 
GeneralAre you tired of keeping up with the latest changes? Pin
Slow Eddie20-Mar-21 2:58
professionalSlow Eddie20-Mar-21 2:58 
GeneralRe: Are you tired of keeping up with the latest changes? Pin
Julian Ragan20-Mar-21 3:22
Julian Ragan20-Mar-21 3:22 
GeneralRe: Are you tired of keeping up with the latest changes? Pin
GuyThiebaut24-Mar-21 0:32
professionalGuyThiebaut24-Mar-21 0:32 
GeneralRe: Are you tired of keeping up with the latest changes? Pin
Gary R. Wheeler5-May-21 14:20
Gary R. Wheeler5-May-21 14:20 

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.