What is Nostr?
Cy /
npub1hkd…yuns
2024-10-21 04:16:22

Cy on Nostr: OK so requests may or may not have URLs. The ones who do are just requests for that ...

OK so requests may or may not have URLs. The ones who do are just requests for that URL. The ones who don't will generate the correct URL on the fly. Sometimes however, the URL generated is also returned in the JSON of the response to the request. So parsing the JSON, you'd create a request with a URL, despite a request that generated that URL already existing. Replace the former with the latter? So I'd have to update every field in every database table that references requests to refer to the URL request? Just... keep a list of table/fields that do that, in the code redundantly?

What if the generating request generates two URLs, that each have their own request, when looked up by URL? I can't just require every request to have a URL, because some of them, the URL changes based on context, current page, current API key, etc.

#programming #fail
Author Public Key
npub1hkdldvynat33kt2za64c6ufz06nhnydvdgwgu6rp6e8ghfggcvnsejyuns