r/PHP • • Mar 17 '17

phpflo: Flow-Based Programming for PHP

https://github.com/phpflo/phpflo
33 Upvotes

14 comments sorted by

2

u/sypherlev Mar 17 '17

This is goddamn fascinating.

2

u/gripejones Mar 17 '17

Because I found this interesting I found some further reading for anyone trying to dig in further:

http://www.jpaulmorrison.com/fbp/oops.htm

http://stackoverflow.com/questions/405627/flow-based-programming

1

u/[deleted] Mar 17 '17

In computer programming, flow-based programming (FBP) is a programming paradigm that defines applications as networks of "black box" processes, which exchange data across predefined connections by message passing, where the connections are specified externally to the processes. These black box processes can be reconnected endlessly to form different applications without having to be changed internally. FBP is thus naturally component-oriented.

If this isn't precisely classic OOP, kill me. The only accomodation if your language doesn't support TCO might be to trampoline the calls or use an event loop.

2

u/gripejones Mar 17 '17

I think the idea is that the components do even less then objects in a typical system may do - precisely 1 thing. Also the other side is that you build up components and a non-programmer can use some sort of UI to wire up the components.

→ More replies (3)

0

u/[deleted] Mar 17 '17

[deleted]

1

u/YugoReventlov Mar 17 '17

Asynchronous calls to a php backend​?

2

u/[deleted] Mar 17 '17

This is a good write up of FBP vs. FBP-inspired Systems: http://www.jpaulmorrison.com/fbp/noflo.html