This is an incredibly rough take on an http4k "fra...
# http4k
a
This is an incredibly rough take on an http4k "framework", but what do you guys think of the two different builder-styles? DSL versus Kwargs. (screenshot for code-highlighting)
DSL benefits: •
CreateData
and
UpdateData
can be declared in the
create
update
methods independently as needed, rather than for the entire resource • can take advantage of
this
scope to access
time
and
internet
from the application easily Kwargs benefits: • simpler for someone not as accustomed to functional programming • easier to understand exactly what is available in scope
I do like the DSL-esque style, but I shied away from it because it might be too similar to ktor. Neither seem very http4k-esque to me