r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

2

u/Xerxero Mar 27 '23

That’s kinda depressing

3

u/schmuelio Mar 27 '23

I completely agree, what might actually make this better (although probably not solve it outright) is standardization.

If browsers sanitized this information into a standard set of enums then it would go a long way, so instead of sending "the gpu is an exynos 500-whatever" as a string, it would send "GPU has a standard performance metric of between 200-350".

You could do similar things with screen resolution i.e. "screen is portrait, 16:9, 720p-1080p"

For things like supported file formats you'd kind of have to settle on a proper web standard for sending audio, video, text, etc. And stick to it.

Things like canvas and webGL capabilities are all software, so having an accepted mandatory standard would let you say "yes canvas is supported" or "webGL v1.2 is supported".

Those are legitimately hard problems to solve, since you'd have to get every player in the market to agree to cooperate, and that's monumentally difficult.