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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 2105web-development × 177
node.js × 145
html × 141
jquery × 121
design-patterns × 110
php × 107
web-applications × 92
design × 80
architecture × 75
css × 74
java × 72
html5 × 66
ajax × 65
object-oriented × 60
angularjs × 60
c# × 57
python × 57
unit-testing × 48
functional-programming × 47
coding-style × 45
programming-practices × 43
programming-languages × 42
api × 41
security × 41