• Die4Ever@programming.dev
    link
    fedilink
    English
    arrow-up
    13
    ·
    2 years ago

    maybe uglier but the 2nd way means the order doesn’t matter, it’s a bit more lenient for manually editing

    • andrew@lemmy.stuart.fun
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      I mean, you can parse a URL path and query string however the heck you want. You can make the former order independent, but it’s probably better supported in libraries as the latter and definitely more common and obvious for users.