News for hackers. Stuff that matters.
Re:Adding type safety to object IDs in TypeScript by yencabulator on Wednesday January 31, 2024 @01:01PM (#39207106)
Because they use slashes, those are kinda annoying to use in web UIs.

Say, /view/users/jdoe/foo -- is that foo a resource, or a URL my web framework can use to e.g. fetch data & components SPA style?

With a flat /view/user_jdoe/foo, you don't have that source of confusion.

There are no comments on this comment yet.