this post was submitted on 29 Jul 2023
1006 points (98.6% liked)

Programmer Humor

32512 readers
869 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] StudioLE@programming.dev 40 points 1 year ago* (last edited 1 year ago) (3 children)

Mmm. It's not going to happen though. Even this company have failed at standardising their own API.

Key for twitter: "twitter": Key for discord: "discordUsername":

Why are they inconsistent?! Who wrote this? Who signed off on it?!

Oh, and for GitHub you provide a url but for twitter and discord it's just the username?! But the twitter handle has to be prefixed with @. Why?!

[–] TheButtonJustSpins@infosec.pub 11 points 1 year ago (1 children)

Just send it with both "discord" and "discordUsername" for compatibility.

[–] synae@lemmy.sdf.org 8 points 1 year ago (1 children)

Years later, we're still trying to figure out which is deprecated and which is the "correct" field

[–] PeWu@lemmy.ml 1 points 1 year ago

Ambiguous fields, sounds like me fr

[–] deafboy@lemmy.world 2 points 1 year ago

I bet it just ends up in some poor bastards mailbox anyway. :)

[–] echodot@feddit.uk 2 points 1 year ago

You could have different versions of the API that have a different requirements.