@localhost_5173 What would you need to do in order to save the predicate in a separate function? Surely the type of the function does not automatically become a type guard? Would be rad tho.
@StephenPHassall I love having reviews from coders with less experience, because they tell you stuff more experienced coders wouldn't. Those times may lead to useful new perspectives.
@jaffathecake Today I would go for POST /reservations/{id}/cancel. In the past I might have forced something like POST /reservations/{id}/cancellations. In this situation, that's not really helpful, just more confusing.
Keeping code clean should be like keeping your house clean. It's easier to clean up small parts constantly rather than piling up and do it all at once.
Me: "A predicate is a function which returns true or false based on some arguments"
@MelvinWahlberg who misheard me: "True or farts?"
Had me laughing longer than I want to admit. 😂
@TkDodo I always enjoyed the freedom of ruby, as long as I had good test coverage. Still I'm very skeptical that it's for the better in projects that large. It's too easy to make mistakes.