Some Test Data
Passer Rating won’t work without data. In a finished product, that would be easy: The user provides his own data. But we don’t want to wait on having a full suite of editors in the app to see how it works. You need some test data to preload into the app.
This can take the form of a CSV file. I have a script, generate-games.rb
, that will produce a good-enough data set:
firstName,lastName,attempts,completions,interceptions, ...Jimmy,Carter,37,11,1,0,56,2010-03-24,Boise Bearcats,2, ...Andy,Jackson,33,8,1,1,30,2010-03-24,Modesto Misanthropes,9, ...James,Madison,20,15,0,4,241,2010-04-14,San Bernardino Stalkers,47, ...Quinn,Adams,9,3,1,1,17,2010-04-14,San Bernardino Stalkers,47, ......
Note
The script runs ...
Get Xcode 5 Start to Finish: iOS and OS X Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.