• 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2024

help-circle

  • If that’s the only error mechanism, sure. Exceptions in most languages tend to be relatively expensive, though, and most have a cheaper idiomatic way of returning error codes; you’d want to use those if they’re available, right?

    I think not being able to get the current time from the system is very exceptional. And I think exceptional circumstances should act that way and not “look like” normal executions. To me, that means letting hell break loose, and not “silently” return a 1 instead of a 0.

    By similar reasoning, “Exceptions in most languages tend to be relatively expensive” is a very weak argument. We don’t expect this error-throwing code to execute a lot.










  • So you might need to try different file extensions.

    No, you don’t. The HTTP response header will tell you what type it is.

    I’m not sure what you’re talking about. You need to know the name of the file before you can download it.

    For instance, my lemmy client, says in its HTML that its favicon is <link id="favicon" rel="shortcut icon" type="image/x-icon" href="https://sopuli.xyz/pictrs/image/9c6eeb58-bf66-4a15-9537-0a822f3c4feb.png">. If I were to blindly download /favicon.ico, I’d naturally get a 404 page:

    $ curl https://sopuli.xyz/favicon.ico -i
    HTTP/2 404 
    # more data
    



    • Last time I checked, Github required a credit card for its paid stuff.
    • PayPal is a privacy nightmare. LiberaPay does accept the usual SEPA wire transfers and debit collects, but only if the recipient accepts them, too.
    • Patreon only accepts credit cards or PayPal.
    • Crypto… is crypto
    • Polar only accepts credit cards and whatever the hell „Cash App Pay” is.

    I have access to none of these options, except SEPA iff Bottles accepts it.

    I have a feeling that fundraisers would get a lot more funding if they weren’t so US-centric. I’m German. I don’t need a goddamn credit card. I have money. And I don’t want some private company snooping through my accounts.