Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting to see so many ways to do it, but what's missing is explanations of pros and cons of the different approaches (though I'm sure there probably aren't many differences). Why not just stick with one then?


I read it as more poking fun at the combination of redundancy in the DOM API combined with redundancy in Javascript.


No real difference, but on an older browser, you might shave a few milliseconds off by using "window.location" instead of just "location", as the latter will need to traverse from local scope up to the global (window) scope.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: