Hacker News new | ask | show | jobs
by tolmasky 5166 days ago
You can imagine something like this:

    {
       /* if IE */
       browser: "IE"
       /* else */
       browser: "standard"
       /* endif */
    }
Pretty terrible and still possible (but admittedly harder) without comments.
1 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.