Fork me on GitHub
#pedestal
<
2019-07-19
>
orestis12:07:33

I had the same experience with docs etc about this — I resorted to looking at the source to figure out the correct interceptors for what I want.

Braden Shepherdson13:07:54

I'm loving the power and flexibility of Pedestal, despite the friction of the incomplete and sometimes inaccurate docs.

Braden Shepherdson13:07:43

in particular, I'm delighted with how I can use all of the interceptor machinery in some code intended to handle actions taken in a turn-based game.

ddeaguiar13:07:13

@orestis, yeah the docs are a lagging and a constant wip. Please create issues in the https://github.com/pedestal/pedestal-docs repo whenever you encounter incorrect information! It’s greatly appreciated 🙂

orestis14:07:04

Oh, I didn’t realize it’s a separate repo. I’ll have a look once I’m back in that area of my app.

Braden Shepherdson13:07:40

using a "router" that matches action keywords to their interceptor chains. that lets me write interceptors that eg. check it's your turn, or that a move is legal before enacting it.

Braden Shepherdson13:07:45

and unlike in most languages, where this kind of thing is a "pattern" I have to reimplement, it's just code I can reuse.

Braden Shepherdson20:07:36

I'm struggling with reloading the server. sometimes it seems to get wedged, and even though I'm doing a reload-all of my top-level server, and then restarting it, I'm getting the old set of routes and interceptors.

ddeaguiar21:07:34

couple that with run-dev and you should see your route changes take effect