Click here to Skip to main content
15,879,095 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: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed19-Jun-13 22:08
professionalMohammed Hameed19-Jun-13 22:08 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Jarek Kruza20-Jun-13 1:30
Jarek Kruza20-Jun-13 1:30 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Rob Grainger24-Jun-13 0:04
Rob Grainger24-Jun-13 0:04 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed24-Jun-13 0:31
professionalMohammed Hameed24-Jun-13 0:31 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Chris Ross 224-Jun-13 2:32
Chris Ross 224-Jun-13 2:32 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Rob Grainger24-Jun-13 4:08
Rob Grainger24-Jun-13 4:08 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.19-Jun-13 23:25
professionalV.19-Jun-13 23:25 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed19-Jun-13 23:56
professionalMohammed Hameed19-Jun-13 23:56 
Yes, that's applicable for user exceptions such as one you mentioned (DivideByZero) because developer already knows this fact and should handle it correctly in code like your example.

What about the system exceptions like MemoryOverflow, etc? This is not in control of developer to handle them.
Understand SOLID! Believe SOLID! Try SOLID! Do implement live SOLID; your Code base becomes Rock SOLID!!!

http://www.codeproject.com/Articles/593751/Code-Review-Checklist-and-Guidelines-for-Csharp-De

GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
cjb11020-Jun-13 0:12
cjb11020-Jun-13 0:12 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed20-Jun-13 0:26
professionalMohammed Hameed20-Jun-13 0:26 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.20-Jun-13 0:31
professionalV.20-Jun-13 0:31 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed20-Jun-13 1:11
professionalMohammed Hameed20-Jun-13 1:11 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Richard Deeming20-Jun-13 1:36
mveRichard Deeming20-Jun-13 1:36 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
V.20-Jun-13 1:39
professionalV.20-Jun-13 1:39 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
AnalogNerd24-Jun-13 2:26
AnalogNerd24-Jun-13 2:26 
GeneralRe: Everywhere a single Catch block used catching top Exception all times. Pin
Mohammed Hameed24-Jun-13 2:37
professionalMohammed Hameed24-Jun-13 2:37 
GeneralRelational database reinvented as a flat file... Pin
johnsyd19-Jun-13 19:58
johnsyd19-Jun-13 19:58 
GeneralRe: Relational database reinvented as a flat file... Pin
AlexCode19-Jun-13 20:25
professionalAlexCode19-Jun-13 20:25 
GeneralRe: Relational database reinvented as a flat file... Pin
johnsyd19-Jun-13 21:22
johnsyd19-Jun-13 21:22 
GeneralRe: Relational database reinvented as a flat file... Pin
NormDroid19-Jun-13 20:43
professionalNormDroid19-Jun-13 20:43 
GeneralRe: Relational database reinvented as a flat file... Pin
AlexCode19-Jun-13 21:26
professionalAlexCode19-Jun-13 21:26 
GeneralRe: Relational database reinvented as a flat file... Pin
Richard Deeming20-Jun-13 1:32
mveRichard Deeming20-Jun-13 1:32 
GeneralRe: Relational database reinvented as a flat file... Pin
jim lahey20-Jun-13 1:57
jim lahey20-Jun-13 1:57 
GeneralWhy stick to just one database? Pin
johnsyd19-Jun-13 17:52
johnsyd19-Jun-13 17:52 
GeneralRe: Why stick to just one database? Pin
krumia19-Jun-13 17:55
krumia19-Jun-13 17:55 

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.