Click here to Skip to main content
15,923,273 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: try-catch code convention Pin
Nagy Vilmos4-Jul-10 2:10
professionalNagy Vilmos4-Jul-10 2:10 
GeneralRe: try-catch code convention Pin
Kevin Drzycimski4-Jul-10 2:19
Kevin Drzycimski4-Jul-10 2:19 
GeneralRe: try-catch code convention Pin
Bigdeak4-Jul-10 22:16
Bigdeak4-Jul-10 22:16 
GeneralMessage Closed Pin
5-Jul-10 8:13
_beauw_5-Jul-10 8:13 
GeneralRe: try-catch code convention Pin
Eddy Vluggen6-Jul-10 7:27
professionalEddy Vluggen6-Jul-10 7:27 
GeneralMessage Closed Pin
14-Jul-10 13:05
_beauw_14-Jul-10 13:05 
GeneralRe: try-catch code convention Pin
Eddy Vluggen14-Jul-10 20:43
professionalEddy Vluggen14-Jul-10 20:43 
GeneralRe: try-catch code convention Pin
Kunal Chowdhury «IN»5-Jul-10 23:34
professionalKunal Chowdhury «IN»5-Jul-10 23:34 
try{} catch{} blocks should be use only when you need it. Else there will be a performance issue. It is not recommended to write try catch block for the whole code of any method. Where you expect to be a codeflaw, where exception may come just put your try catch there. Don't try to use generic exception in all the case. If you know some specific exception that may come, only catch those explicitly.


Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.


Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial

GeneralRe: try-catch code convention Pin
fjdiewornncalwe6-Jul-10 4:41
professionalfjdiewornncalwe6-Jul-10 4:41 
GeneralRe: try-catch code convention Pin
Abhinav S6-Jul-10 19:04
Abhinav S6-Jul-10 19:04 
GeneralRe: try-catch code convention Pin
Alois Kraus15-Jul-10 22:22
Alois Kraus15-Jul-10 22:22 
GeneralRe: try-catch code convention Pin
whatrevolution19-Jul-10 4:03
whatrevolution19-Jul-10 4:03 
GeneralRe: try-catch code convention Pin
Hired Mind22-Jul-10 7:19
Hired Mind22-Jul-10 7:19 
GeneralMy turn on MS Bashing PinPopular
peterchen1-Jul-10 0:59
peterchen1-Jul-10 0:59 
GeneralA whole day wasted on one stored procedure Pin
ChrisC(@ncmail)28-Jun-10 12:29
ChrisC(@ncmail)28-Jun-10 12:29 
GeneralRe: A whole day wasted on one stored procedure Pin
J4amieC28-Jun-10 21:59
J4amieC28-Jun-10 21:59 
GeneralRe: A whole day wasted on one stored procedure Pin
David Skelly28-Jun-10 22:36
David Skelly28-Jun-10 22:36 
GeneralRe: A whole day wasted on one stored procedure Pin
ChrisC(@ncmail)29-Jun-10 8:16
ChrisC(@ncmail)29-Jun-10 8:16 
GeneralRe: A whole day wasted on one stored procedure Pin
PIEBALDconsult9-Jul-10 10:47
mvePIEBALDconsult9-Jul-10 10:47 
GeneralStupid Naming Consequences with LINQ Pin
Member 269131324-Jun-10 22:45
Member 269131324-Jun-10 22:45 
GeneralRe: Stupid Naming Consequences with LINQ Pin
whatrevolution25-Jun-10 2:49
whatrevolution25-Jun-10 2:49 
GeneralRe: Stupid Naming Consequences with LINQ Pin
User 274316225-Jun-10 23:59
User 274316225-Jun-10 23:59 
GeneralMessage Closed Pin
28-Jun-10 8:59
_beauw_28-Jun-10 8:59 
GeneralRe: Stupid Naming Consequences with LINQ Pin
David Skelly28-Jun-10 22:38
David Skelly28-Jun-10 22:38 
GeneralRe: Stupid Naming Consequences with LINQ Pin
whatrevolution3-Jul-10 17:28
whatrevolution3-Jul-10 17:28 

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.