Agility Kata „Viewing CSV Files III“
Make the CSV viewer capable of displaying huge CSV files; think 3 times the GB of your computer’s memory. Yes, the CSV viewer should be able to handle billions of data records, or at least many more records than would fit into memory.
Still, when the application is started, the first page should be displayed immediately. But of course then the maximum number of pages cannot be known – yet.
As long as that´s the case, just put a “?” after it:
No.|Name |Age|City |
1. |Peter|42 |New York|
2. |Paul |57 |London |
3. |Mary |35 |Munich |
Page 1 of 3?
N(ext page, P(revious page, F(irst page, L(ast page, J(ump to page, eX(it
 This implies there´s background processing taking place. The file has to be further processed after displaying the first page, because the user wants to know the exact number of pages and wants to be able to immediately jump to any page (that has already been processed). With regard to high usability it´s no option to only start reading from the file when the user has entered a page number to jump to.
“I am the founder of Majer Consulting and Majer Training and an experienced software developer, trainer and consultant. I have been on the road in the SAP world since 1998, supporting numerous projects, and have developed a passion for software engineering, software testing and agile development methods such as TDD. When I am not servicing customers or holding seminars, I am speaking at conferences or writing my next book.”