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

Honestly they should just have a comment:

// This triggers layout. Needed for some browsers.

But agreed that you shouldn't require relying on history for this context. It's bad news. Yes code happens, but it should be obvious what it does (via clear code) and why (via comments as needed).



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

Search: