I sometimes admin. But usually not.

  • 0 Posts
  • 27 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle

  • An API token is more secure than a password by virtue of it not needing to be typed in by a human. Phishing, writing down passwords, and the fact that API tokens can have restricted scopes all make them more secure.

    Expiration on its own doesn’t make it more secure, but it can if it’s in the context of loading the token onto a system that you might lose track of/not have access to in the future.

    Individual API tokens can also be revoked without revoking all of them, unlike a password where changing it means you have to re-login everywhere.

    And that’s just the tip of the iceberg. Lmk if you have questions, though.







  • Depending on whether this code is in a hotpath (and considering how “elementary” it is, I figure that’s a possibility), this could very well be a significant speed improvement.

    Though I’d say that only excuses it if it’s truly an elementary function (and not one line as part of a larger function), as otherwise it’s unreadable garbage. But on its own it:

    • has a clear purpose
    • (presumably) isn’t reimplementing functionality
    • is easily tested
    • can be modified with no side effects (besides breaking your calendar, but that’s beside the point)












  • I fucking hate the whiny answer of “but my/most existing headphones had an aux so I don’t like USB-C.”

    The biggest factor for me is that it simply makes it impossible to charge your phone and use wired headphones at the same time without a special splitter adaptor… Which itself is impossible to roll up with your headphones.

    It’s designed to be such an inconvenience to the point that you’re actually just incentivized to buy wireless headphones. And since it was Apple, that of course meant their very expensive Airpods.

    That said, I happily use wireless Bose headphones now anyway, but I did have to ditch my audio technicas for that reason.