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

Naming things is hard:

    if (navigator.userAgent.indexOf('FBForIPhone') >= 0 
    || navigator.userAgent.indexOf('FBIOS') >= 0 
    || navigator.userAgent.indexOf('FBAN') >= 0 
    || navigator.userAgent.indexOf('FB4A') >= 0) {
          classes += 'app ';
        }


Probably ~20y of technical debt represented there




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

Search: