Stringbuilding is an extremely important topic that doesn't get the attention it needs. The result is that, often, a large codebase becomes an unholy-hard-to-maintain mess because it's littered with magic strings: /people/:id/edit encourages that unholy mess, whereas /people/edit/:id does not. So an extra bit of quality we can add to the Boolean slides is to encourage the latter.
The react slides (and GitHub repos) currently suggest paths like:
...but they're a pain to generate automagically. Better is:
Because then you can do things like
And subsequently, build your paths programmatically, like so:
Stringbuilding is an extremely important topic that doesn't get the attention it needs. The result is that, often, a large codebase becomes an unholy-hard-to-maintain mess because it's littered with magic strings:
/people/:id/edit
encourages that unholy mess, whereas/people/edit/:id
does not. So an extra bit of quality we can add to the Boolean slides is to encourage the latter.