Click here to Skip to main content
14,388,136 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 3:04
MemberGary Wheeler12-Sep-19 3:04 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 798912212-Sep-19 5:07
MemberMember 798912212-Sep-19 5:07 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 916705712-Sep-19 5:11
MemberMember 916705712-Sep-19 5:11 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 798912212-Sep-19 6:53
MemberMember 798912212-Sep-19 6:53 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Peter R. Fletcher12-Sep-19 5:12
MemberPeter R. Fletcher12-Sep-19 5:12 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 916705712-Sep-19 5:15
MemberMember 916705712-Sep-19 5:15 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Peter R. Fletcher12-Sep-19 5:39
MemberPeter R. Fletcher12-Sep-19 5:39 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Kiriander12-Sep-19 21:12
MemberKiriander12-Sep-19 21: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 23:28
Memberxtofl11-Sep-19 23:28 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Rick York12-Sep-19 5:47
mveRick York12-Sep-19 5:47 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Richard Deeming12-Sep-19 0:49
mveRichard Deeming12-Sep-19 0:49 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 5:09
Memberhoney the codewitch12-Sep-19 5:09 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
S Houghtelin12-Sep-19 2:19
professionalS Houghtelin12-Sep-19 2:19 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 798912212-Sep-19 5:09
MemberMember 798912212-Sep-19 5:09 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 1226197312-Sep-19 2:40
MemberMember 1226197312-Sep-19 2:40 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Slow Eddie12-Sep-19 4:10
professionalSlow Eddie12-Sep-19 4:10 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
decaffeinatedMonkey12-Sep-19 4:18
MemberdecaffeinatedMonkey12-Sep-19 4:18 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
agolddog12-Sep-19 4:29
Memberagolddog12-Sep-19 4:29 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Rick York12-Sep-19 5:50
mveRick York12-Sep-19 5:50 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
AnotherKen12-Sep-19 5:19
professionalAnotherKen12-Sep-19 5:19 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 5:20
Memberhoney the codewitch12-Sep-19 5:20 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 798912212-Sep-19 5:20
MemberMember 798912212-Sep-19 5:20 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 5:23
Memberhoney the codewitch12-Sep-19 5:23 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 798912212-Sep-19 7:15
MemberMember 798912212-Sep-19 7:15 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch12-Sep-19 8:17
Memberhoney the codewitch12-Sep-19 8: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.