1 vote
Accepted

HTTP redirect vs JS redirect

Using a Javascript redirect can allow you to play a little fast and loose such as deciding half way through rendering a page, that you actually want to force a redirect. NOTE: I am not saying this is ...
DavidT's user avatar
  • 1,214
1 vote

How do you handle time unit constants (second, minute, etc)?

I don't handle constants like that if I can avoid it. Using the specific example of time in JS, I would use a library that handles those unit conversions itself. Instead of setTimeout(someFunction, 10 ...
Caleth's user avatar
  • 10.5k

Only top scored, non community-wiki answers of a minimum length are eligible