|
|
|
|
|
by skydhash
439 days ago
|
|
A whole web app. The IO are generally user facing network connections (request and response), IPC and RPC (databases, other services), and files interaction. Anything else is logic. An FP programs is a collection of pipes, and IO are the endpoints. With FP the blob of data passes cleanly from one section to another while in imperative, some of it sticks. In OOP, there’s a lot of blob, that flings stuff at each other and in the process create more blobs. |
|
- The part that receives the connection
- The part that sends back a response
- Interacting with other unspecified systems through IPC, RPC or whatever (databases mainly)
The shit in between, calculating a derivative or setting up a fancy data structure of some kind or something, is interesting but how much of that do we actually do as programmers? I'm not being obtuse - intentionally anyway - I'm actually curious what interesting things functional programmers do because I'm not seeing much of it.
Edit: my point is, you say "Anything else is logic." to which I respond "What's left?"