A demo of using generators for doing imports
- What's a generator?
- DataGenerator.php
- Separates data generation from usage
yield $x
- Importing - old school...ish
- ImportDemo.php
- Turning it inside out
$data = yield
- Feeding your generator
- GeneratorImportDemo.php
- Maybe not better, but more elegant