| « The Expert System | Re-enlisting the Data General » |
Let's face it; being a developer doesn't really foster a great social life. Late-night coding and sitting still for days makes our eyes bloodshot, our bellies large, our breath toxic, and our postures almost parabolic.
So sometimes we have to get creative to become more popular, or to at least get more phone calls. Maybe it's time to take a cue from one of Josh's colleagues.
if ( homePhone == null )
{
homePhone = new PhoneNumber();
homePhone.setNumber( "214-555-1212" );
setHomePhone( homePhone );
}
In short, rather than validating that the user has entered a phone number on the registration form, it replaces null phone numbers with the developer's own home phone number (which we anonymized so that the guy doesn't get too popular).
|
Why didn't you also censor out the area code? You just opened this developer up to some serious phone calls. The entire keyspace is at most 10,000,000 entries. We can hack that in seconds and spend the rest of our time doing nothing but calling him over and over, all because his phone number appeared ON THE INTERNET!
214-000-0000 Hello? Nope 214-000-0001 Hello? Nope. |
Re: For a Good Time, Call...
2009-02-04 08:21
•
by
call me
(unregistered)
|
..and almost all of them are called John! You have unwittingly stumbled upon the great Smith/Doe conspiracy |
| « The Expert System | Re-enlisting the Data General » |