Click here to Skip to main content
15,891,905 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.

 
PraiseRe: do any of you others have little coding mantras that save your behind? Pin
Gary Wheeler12-Sep-19 2:04
Gary Wheeler12-Sep-19 2:04 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
kalberts12-Sep-19 4:07
kalberts12-Sep-19 4:07 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 916705712-Sep-19 4:11
Member 916705712-Sep-19 4:11 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
kalberts12-Sep-19 5:53
kalberts12-Sep-19 5:53 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Peter R. Fletcher12-Sep-19 4:12
Peter R. Fletcher12-Sep-19 4:12 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 916705712-Sep-19 4:15
Member 916705712-Sep-19 4:15 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Peter R. Fletcher12-Sep-19 4:39
Peter R. Fletcher12-Sep-19 4:39 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Kiriander12-Sep-19 20:12
Kiriander12-Sep-19 20:12 
Storing dates in UTC internally solves almost all issues. Not all of them, but almost all. Comparing time stamps in milliseconds for equality may work or may fail, depending on the context. In a scientific context, all clocks involved are precise down to milliseconds at worst and way more precise at best. That, and time differences of a few milliseconds make huge differences.

But it all boils down to context. But yeah, I've seen some very stupid date handling myself. My point is, while comparing floats for equality is a horrible idea by default and always, comparing dates for equality may work very well depending on the circumstances. Well, that and dates are like encryption, there's heaps of way to get it wrong, many of them very subtile but still destructive and only a few (of not only one) ways to get it right.
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
xtofl11-Sep-19 22:28
xtofl11-Sep-19 22:28 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Rick York12-Sep-19 4:47
mveRick York12-Sep-19 4:47 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Richard Deeming11-Sep-19 23:49
mveRichard Deeming11-Sep-19 23:49 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 4:09
mvahoney the codewitch12-Sep-19 4:09 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
S Houghtelin12-Sep-19 1:19
professionalS Houghtelin12-Sep-19 1:19 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
kalberts12-Sep-19 4:09
kalberts12-Sep-19 4:09 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 1226197312-Sep-19 1:40
Member 1226197312-Sep-19 1:40 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Slow Eddie12-Sep-19 3:10
professionalSlow Eddie12-Sep-19 3:10 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
decaffeinatedMonkey12-Sep-19 3:18
decaffeinatedMonkey12-Sep-19 3:18 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
agolddog12-Sep-19 3:29
agolddog12-Sep-19 3:29 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Rick York12-Sep-19 4:50
mveRick York12-Sep-19 4:50 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
AnotherKen12-Sep-19 4:19
professionalAnotherKen12-Sep-19 4:19 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 4:20
mvahoney the codewitch12-Sep-19 4:20 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
kalberts12-Sep-19 4:20
kalberts12-Sep-19 4:20 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 4:23
mvahoney the codewitch12-Sep-19 4:23 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
kalberts12-Sep-19 6:15
kalberts12-Sep-19 6:15 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 7:17
mvahoney the codewitch12-Sep-19 7:17 

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.