Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The Exception to the Exception Pin
jmaida16-Feb-23 13:41
jmaida16-Feb-23 13:41 
GeneralRe: The Exception to the Exception Pin
PIEBALDconsult16-Feb-23 6:31
mvePIEBALDconsult16-Feb-23 6:31 
GeneralRe: The Exception to the Exception Pin
Peter Adam16-Feb-23 23:42
professionalPeter Adam16-Feb-23 23:42 
GeneralRe: The Exception to the Exception Pin
jschell16-Feb-23 7:26
jschell16-Feb-23 7:26 
GeneralRe: The Exception to the Exception Pin
Gerry Schmitz16-Feb-23 8:02
mveGerry Schmitz16-Feb-23 8:02 
GeneralRe: The Exception to the Exception Pin
BillWoodruff16-Feb-23 19:43
professionalBillWoodruff16-Feb-23 19:43 
GeneralRe: The Exception to the Exception Pin
maze316-Feb-23 23:28
professionalmaze316-Feb-23 23:28 
GeneralRe: The Exception to the Exception Pin
Davyd McColl17-Feb-23 6:51
Davyd McColl17-Feb-23 6:51 
No
This is why we have DateTime.TryParse. Exceptions are expensive to throw and catch because they have to stop and construct a stack trace. You most definitely should not just "catch the exception ... and then re-throw" if this is a common enough occurrence. On the other hand, if you don't know for sure that this is a possible outcome and the date-time parsing is not under your control, I totally understand catching & re-throwing with more context. But if you're the one doing DateTime.Parse willy-nilly on a string, YATA.
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing

Which is stupid.

GeneralRe: The Exception to the Exception Pin
englebart18-Feb-23 4:05
professionalenglebart18-Feb-23 4:05 
GeneralRe: The Exception to the Exception Pin
Cpichols20-Feb-23 1:33
Cpichols20-Feb-23 1:33 
GeneralRe: The Exception to the Exception Pin
atverweij20-Feb-23 2:44
atverweij20-Feb-23 2:44 
GeneralWSO CCC OTD 2023-02-16 Pin
OriginalGriff15-Feb-23 21:40
mveOriginalGriff15-Feb-23 21:40 
GeneralRe: WSO CCC OTD 2023-02-16 Pin
pkfox15-Feb-23 22:34
professionalpkfox15-Feb-23 22:34 
GeneralRe: WSO CCC OTD 2023-02-16 Pin
OriginalGriff15-Feb-23 22:48
mveOriginalGriff15-Feb-23 22:48 
GeneralRe: WSO CCC OTD 2023-02-16 Pin
pkfox15-Feb-23 22:50
professionalpkfox15-Feb-23 22:50 
GeneralRe: WSO CCC OTD 2023-02-16 Pin
DerekT-P16-Feb-23 1:22
professionalDerekT-P16-Feb-23 1:22 
GeneralRe: WSO CCC OTD 2023-02-16 - we have a winner! Pin
OriginalGriff16-Feb-23 1:38
mveOriginalGriff16-Feb-23 1:38 
GeneralRe: WSO CCC OTD 2023-02-16 - we have a winner! Pin
DerekT-P16-Feb-23 1:51
professionalDerekT-P16-Feb-23 1:51 
GeneralOh dear. Bing has been reading reddit again ... Pin
OriginalGriff15-Feb-23 19:57
mveOriginalGriff15-Feb-23 19:57 
GeneralRe: Oh dear. Bing has been reading reddit again ... Pin
Slacker00716-Feb-23 0:00
professionalSlacker00716-Feb-23 0:00 
GeneralRe: Oh dear. Bing has been reading reddit again ... Pin
Paul612416-Feb-23 3:36
Paul612416-Feb-23 3:36 
GeneralRe: Oh dear. Bing has been reading reddit again ... Pin
Mike Hankey16-Feb-23 4:45
mveMike Hankey16-Feb-23 4:45 
GeneralLife Pin
David O'Neil15-Feb-23 15:13
professionalDavid O'Neil15-Feb-23 15:13 
GeneralRe: Life Pin
jmaida15-Feb-23 17:03
jmaida15-Feb-23 17:03 
GeneralRe: Life Pin
jhaga15-Feb-23 20:25
professionaljhaga15-Feb-23 20:25 

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.