Stuntman And Lover Of Cheese

by Dan Bostonweeks

Landslide Election Fun With NaN

The New York Times has a neat Election guide (flash) that shows not only the way polls are going for each state but also past presidential results when you mouse over the state or district. Now, my friend Andre noticed yet another NaN interface gaffe where the District of Columbia (D.C.) has Kennedy winning by ‘NaN%’ in 1960. Not only should there not be any listing for D.C. in 1960 (see, they only got electoral votes in 1961 with the 23rd Amendment) if it comes up as a NaN then it should just not display at all. Oh well, things like this will continue. I’m guessing it’s because people aren’t doing correct data input validation which is the cause of many of our buffer over-runs and successful attacks against software. NaN screen grab