4 ms·
I was just talking to my students yesterday about making assumptions with user data, and in this particular instance, assuming that a last name is only one word
by coreyp_1 11y ago
I was just talking to my students yesterday about making assumptions with user data, and in this particular instance, assuming that a last name is only one word.
Years ago, when I first started using Google AdSense on my website, they had problems with my physical address. Specifically, they did not allow you to use a PO Box address as your physical address. Makes sense. Well, I lived in a rural area, so my physical address was "Route 1 Box 246" (back then there was NO other designation for the house location that I could use, now commonly known as a "911 address"). The website would not allow me to sign up because "Box" appeared in the middle of the address line. I sent them an email and they had it fixed remarkably fast, but I have used it over the years as a good example of a case for not making assumptions on input.
- cafard 11y agoSomebody once set up a report for us using Microsoft controls. When processing some addresses in I forget what state, it encountered values that looked like 25E155 as scientific notation and blew up on floating point overflow. It was not hard to tweak the input once we figured out what was going on.