News for hackers. Stuff that matters.
Re:Application-as-a-Function Thinking by jjice on Sunday October 16, 2022 @11:56AM (#33224581)
Sounds kind of like Go's HTTP handlers just being functions. Makes testing them very easy since you just call them with an http.ResponseWriter and a http.Request struct.
Re:Application-as-a-Function Thinking by deepsun on Sunday October 16, 2022 @12:10PM (#33224703)
Not sure what's new here. Handlers were always functions in java (and other languages), even 20 years ago.

PP talks about general setup of the server in http4k (which I'm not a fan actually, because server setup is a very small thing done once. Just as a build file, I actually want it as long and verbose as possible).