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

You can imagine something like this:

    {
       /* if IE */
       browser: "IE"
       /* else */
       browser: "standard"
       /* endif */
    }
Pretty terrible and still possible (but admittedly harder) without comments.


If you are storing this kind of implementation logic in your data, I hope I never have to work with you (not aimed at parent posting, but rather the global "you"


Unfortunately it's all too common in mobile development - mobile is the new "bad old days" of user agent sniffing hell.


You typically don't store this sort of thing in data, though.

Then again, we have certain types of logic stored in a database table, loaded through fixtures... so my two cents may be worth much less than what they appear.




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

Search: