3 ms·
You can imagine something like this: { /* if IE */ browser: "IE" /* else */ browser: "standard" /* endif */ } Prett
by tolmasky 15y 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.
- greghinch 15y agoIf 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"
- davedx 15y agoUnfortunately it's all too common in mobile development - mobile is the new "bad old days" of user agent sniffing hell.
- pavel_lishin 15y agoYou 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.