News for hackers. Stuff that matters.
Re:Application-as-a-Function Thinking by WJW on Monday October 17, 2022 @04:41AM (#33231110)
The "app-as-function" has some very concrete applications though, even outside languages like Haskell. The [rack-test](https://github.com/rack/rack-test) gem (and similar languages) work exactly like this: they run the "app" part without the "web server" part to enable much easier testing. Rack middlewares similarly treat the enclosed app as just a function taking some specified input and returning some output value.

There are no comments on this comment yet.