Click here to Skip to main content
15,900,906 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: MILLISEC_PER_SEC is never needed Pin
W Balboos, GHB9-Jan-18 7:56
W Balboos, GHB9-Jan-18 7:56 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Jörgen Andersson9-Jan-18 9:27
professionalJörgen Andersson9-Jan-18 9:27 
GeneralRe: MILLISEC_PER_SEC is never needed (Option II) Pin
W Balboos, GHB9-Jan-18 7:52
W Balboos, GHB9-Jan-18 7:52 
GeneralRe: MILLISEC_PER_SEC is never needed (Option II) Pin
PIEBALDconsult9-Jan-18 13:26
mvePIEBALDconsult9-Jan-18 13:26 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Losinger9-Jan-18 8:25
professionalChris Losinger9-Jan-18 8:25 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
David O'Neil9-Jan-18 9:58
professionalDavid O'Neil9-Jan-18 9:58 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Joe Woodbury9-Jan-18 11:37
professionalJoe Woodbury9-Jan-18 11:37 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Maunder9-Jan-18 14:21
cofounderChris Maunder9-Jan-18 14:21 
A counterargument. Excellent.

My counter-counter argument, and the reason my brain popped:

I would always prefer to have something like
 var timeInSeconds = X;
var timeInMilliseconds = timeInSeconds / 1000;

My point is that the 1000 is always 1000. The variables surrounding that should be the ones clearly named. The "1000" can never be anything other than 1000.

At least that's what I think.
cheers
Chris Maunder

GeneralRe: MILLISEC_PER_SEC is never needed Pin
Joe Woodbury9-Jan-18 14:24
professionalJoe Woodbury9-Jan-18 14:24 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Maunder9-Jan-18 14:31
cofounderChris Maunder9-Jan-18 14:31 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Joe Woodbury9-Jan-18 14:35
professionalJoe Woodbury9-Jan-18 14:35 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts10-Jan-18 0:00
kalberts10-Jan-18 0:00 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Super Lloyd9-Jan-18 12:50
Super Lloyd9-Jan-18 12:50 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts9-Jan-18 13:21
kalberts9-Jan-18 13:21 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Maunder9-Jan-18 14:23
cofounderChris Maunder9-Jan-18 14:23 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts10-Jan-18 0:34
kalberts10-Jan-18 0:34 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Maunder10-Jan-18 8:06
cofounderChris Maunder10-Jan-18 8:06 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts9-Jan-18 13:23
kalberts9-Jan-18 13:23 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
PIEBALDconsult9-Jan-18 13:28
mvePIEBALDconsult9-Jan-18 13:28 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts9-Jan-18 13:32
kalberts9-Jan-18 13:32 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
PIEBALDconsult9-Jan-18 13:36
mvePIEBALDconsult9-Jan-18 13:36 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Chris Maunder9-Jan-18 14:24
cofounderChris Maunder9-Jan-18 14:24 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
Jörgen Andersson9-Jan-18 21:59
professionalJörgen Andersson9-Jan-18 21:59 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
den2k889-Jan-18 21:23
professionalden2k889-Jan-18 21:23 
GeneralRe: MILLISEC_PER_SEC is never needed Pin
kalberts10-Jan-18 0:52
kalberts10-Jan-18 0:52 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   495 votes