Skip to main content

Timeline for Better way to determine date

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Jan 30, 2012 at 22:41 vote accept jeffreynolte
Jan 30, 2012 at 22:40 comment added Wayne @user10480 - You're using a PC that can perform billions of instructions every second. How many billions of instructions do you think you can save here? Get my point? Any change you make will be imperceptible.
Jan 30, 2012 at 22:37 comment added jeffreynolte @lwburk Don't the 2 go hand in hand? I am just trying to learn through example.
Jan 30, 2012 at 21:48 history migrated from stackoverflow.com (revisions)
Jan 30, 2012 at 19:38 answer added CBusBus timeline score: 0
Jan 30, 2012 at 19:28 comment added Wayne You are doing something I see a lot of new programmers do, which is worrying about efficiency (to the point of silliness) when there's lots and lots of better stuff a new programmer should be worrying about. Some free advice (that's worth its cost, I'm sure): Don't ask any more questions about efficiency until you know enough to ask questions about efficiency, at which time you will no longer want to ask questions about efficiency.
Jan 30, 2012 at 19:23 comment added Frédéric Hamidi Yes, you can combine the two if statements into one with the logical AND operator &&, but I don't think the efficiency difference will be noticeable, if there is one at all. If you find your current code more readable, there's nothing wrong in keeping it as it is.
Jan 30, 2012 at 19:22 answer added Abhijeet Rastogi timeline score: 1
Jan 30, 2012 at 19:22 comment added jnolte I thought there may be a way to run everything in one if statement to make it more efficient. I am not really sure just looking to see if I can optimize.
Jan 30, 2012 at 19:20 comment added Frédéric Hamidi What makes you think your current code is inefficient?
Jan 30, 2012 at 19:18 history asked jeffreynolte CC BY-SA 3.0