Click here to Skip to main content
14,362,565 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: do any of you others have little coding mantras that save your behind? Pin
honey the codewitch11-Sep-19 13:12
memberhoney the codewitch11-Sep-19 13:12 
GeneralRe: do any of you others have little coding mantras that save your behind? Pin
Member 916705711-Sep-19 21:57
memberMember 916705711-Sep-19 21:57 
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 
That, on the other hand, may work just fine. Depends on the language/runtime library and the source of the dates, but when I want to know if some date is today, equality works.

Again, assuming the runtime library helps and you know what you're doing. There's a reason why TheDailyWTF has a couple stories on mishandling time stamps.

I suppose, we could amend "Don't run home-built date/time handling" to the list of useful mantras. There's heap tons of ways to get them wrong and even if you test all you can, it may fail when a leap year occurs.
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 
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 

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.