Around 20 years ago, I wanted to figure out what the simplest "Unix-pipes-and-filters" equivalent was that I could come up with using OO.
What I came up with (in Objective-C) was a 'filter' that has two things:
1. A single -writeObject: message it responds to that takes a single object argument.
2. a 'target' property that also responds to -writeObject:
That was it.
Is it the same as "flow-based" programming? Certainly not at present, simply because I haven't needed various bits of "full flow". On the other hand, it's been up to every task in that general domain I've thrown at it.
What's nice is that it is first order, has named/reusable components, is super-simple, debuggable and can even integrate actual Unix filters smoothly.
What I came up with (in Objective-C) was a 'filter' that has two things:
That was it.Is it the same as "flow-based" programming? Certainly not at present, simply because I haven't needed various bits of "full flow". On the other hand, it's been up to every task in that general domain I've thrown at it.
What's nice is that it is first order, has named/reusable components, is super-simple, debuggable and can even integrate actual Unix filters smoothly.
¯\_(ツ)_/¯
https://github.com/mpw/MPWFoundation/blob/master/Documentati...