Pittsburgh Node.js Meetup 2013
 
 
 
 
 
 
 
 
Unix Pipe
 
 
 
 
 
 
cat results.txt | grep "success" | wc -l
					Count lines that match "success" from results.txt

 
 
 
 
 
 
 
 
We should have some ways of coupling programs like garden hose--screw in another segment when it becomes necessary to massage data in another way. This is the way of IO also.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
._read(), .push()
 
 
.read()
 
 
 
 
._write()
 
 
.write()
 
 
 
 
._read(), .push(), ._write()
 
 
.read(), .write()
 
 
 
 
._transform(), .push()
 
 
.read(), .write()
 
 
 
 
er... well... um
 
 
take a nap
 
 
 
 
 
 
...and of course
 
 
.pipe()
 
 
 
 
 
 
Do stuff to stuff while stuff
Command line fu
Latency!!!
Efficiency!!!
Huge files
Parser/processor
Stupid slow thing!
Stupid cluttered thing!