3 ms·
> it's the user's agent I completely agree, but if I configure my agent to break some assumption you made in your code then I have no one but myself to blame.
by Spivak 10y ago
> it's the user's agent
I completely agree, but if I configure my agent to break some assumption you made in your code then I have no one but myself to blame.
One can break just about any piece of software by messing with the environment in which it runs. It's a shame that we rarely check or document these kinds of dependencies.
- pdkl95 10y agoYou are, of course, free to make assumptions about the user agent and make your page break on some user agents, but that's very unprofessional and gives a bad first impression. Progressive enhancement isn't hard if you design the page right, so most people will get the fancier site while at least having a working minimal page in other cases. This is really just checking for capabilities before using them and checking return values for errors, which everybody should be doing anyway. Assuming JS (or any browser feature) is available is similar to skipping the check for NULL after calling fopen(3). Skipping error handling is an indicator of shoddy programming.