pedestal

technosophist 2025-05-08T09:21:09.247209Z

Liking the recent work. I've been doing component work lately (https://github.com/thoughtfull-clojure/amalgam and https://github.com/thoughtfull-clojure/amalgam-dirigiste) and was thinking about doing a pedestal treatment, but it's unnecessary πŸ™‚ I recently had an experience at work where I realized a better approach to our interceptors might be to inject dependencies, instead of trying to pull them out of a bag-of-dependencies context.

hlship 2025-05-08T14:56:54.676089Z

This was something I had always meant to work on while I was still at Walmart, where we really leveraged Component heavily (Component was created by S. Sierra when they were consulting at Walmart) but we had to have lots of hand-rolled work to link Component with Interceptors. This 50 lines or so of code would have helped a lot.

hlship 2025-05-08T06:14:41.791179Z

The interesting thing is that there are almost no changes needed to sawtooth to prefer literal routes over param routes over wild card routes. It’s all almost ordered that way now, and most of the work is going to be in documenting this, some tests, and dialing back what Sawtooth considers to be a conflict. So /foo/bar/baz takes precedence over /foo/:bar/:baz which has precedence over /foo/*path. I think this is going to work really well with resource access as routes (rather than as interceptors).

πŸ”₯ 1
πŸ™Œ 3