-
alexkurisu
> While every client shouldn't just be a clone of every other, being different for the sake of being different is also a bad choice. Users are familiar with the way things work in other products and will expect them to work the same way in yours; that doesn't mean everyone should copy verbatim, but it does mean there should be a good reason for deviating from such expectations (only surprise users in a good way!) That's exactly what i'm arguing against - "good UX" and "UX everyone used to" are not the same thing, while you assume they are the same.
-
theTedd
I don't assume they are the same. Most people are used to the QWERTY keyboard layout which is categorically bad, but it is what people are used to and giving them something else leads to a poor experience - not because the alternative is bad, but because the users aren't familiar with it (yes, it would be better if they would take the time to get past that, but they don't because the initial discomfort is discouraging.) To repeat myself: _there should be a good reason for deviating from such expectations (only surprise users in a good way!)_
-
jjj333_p (any pronouns)
(fwiw qwerty did have its uses, and personally I have large enough hands that i still mess up when keys are too close so its probably still advantageous to me)
-
theTedd
Its use was to reduce the incidence of the hammers clashing and getting jammed on steel typewriters. In your case, you need a larger keyboard/keys/spacing.
-
jjj333_p (any pronouns)
> In your case, you need a larger keyboard/keys/spacing. probably true, but im on a 15.6" laptop with a pretty not-cramped keyboard so it is what it is lol
-
lovetox
question the client developers, are you using for http always "identity" encoding, or do you allow compression
-
lovetox
i think it would be useful especially for stuff like link preview where we download websites
-
lovetox
for other stuff like classic file transfer of pictures, videos etc, it probably is useless
-
moparisthebest
why wouldn't you allow compression? I'd expect most http libs to automatically handle that for you
-
lovetox
yes but they not necessarily protect you from decompression bombs
-
moparisthebest
(but make sure you've updated your brotli dep and CAs this last week lol)
-
moparisthebest
if they don't that's a security bug you should report upstream
-
moparisthebest
I think I still have my test server up for that and/or can start it again and find the URL later...
-
lovetox
https://securelayer7.net/lab/cve-2026-84382-httpx2-decompression-amplification-oom
-
moparisthebest
excellent
-
lovetox
they fixed it a while ago, but not like you think
-
lovetox
as i read it, its now guaranteed that its not decompressing in memory
-
lovetox
as a whole
-
lovetox
the give it to you in chunks, but still everything
-
lovetox
so it seem i have to check myself continously how much i downloaded
-
lovetox
and apply some limit
-
moparisthebest
I think that's always true with or without compression
-
lovetox
but its harder, as you dont know the decompressed size
-
lovetox
if a server offers some content size, you can judge if its ok, and then abort if its over that
-
lovetox
what you do with compressed content? apply a ratio?
-
lovetox
if it goes over 1:10? 1:100? fixed limit?
-
moparisthebest
server never has to offer a content size at all
-
lovetox
then you can assume one, same thing
-
moparisthebest
it can just stream you unlimited uncompressed data too, so you need a solution anyway and compression doesn't matter
-
lovetox
downloaded content is easy, if the server does not announce it, you cap it at 10 MB or whatever With compressed, it announces to send you 10 MB, this also holds true, but you write 1 GB to disk
-
lovetox
you can only catch this with some ratio that you apply, or with a fixed limit
-
lovetox
i never write more than X MB uncompressed .. or whatever
-
lovetox
i guess i set a 1:10 ratio and lets see how many users complain
-
lovetox
or disable compression altogether
-
lovetox
or maybe enable it only for link previews, where i can easily set a hard limit
-
lovetox
i think thats the way
-
moparisthebest
I think I covered this here https://www.moparisthebest.com/httppppppppppp-upload/#advice-for-http-using-devs
-
moparisthebest
I'm not following how compression changes anything at all
-
lovetox
because the value is not obvious, it can only be gathered by experience
-
lovetox
if someone uploads a 100 mb logfile compressed logfile, should i disallow to download it?✎ -
lovetox
if someone uploads a 100 mb compressed logfile, should i disallow to download it? ✏
-
lovetox
to what will it uncompress? 1 GB? is this too much or not?!
-
moparisthebest
you never know how much data a random url will return, so you have to deal with that somehow
-
lovetox
Thats the subtle difference, the server tells you, you can ask the user, are you ok with downloading 1 GB, if they click yes, i know i have to abort after exactly 1 GB
-
lovetox
if i see a 100 MB logfile, i cannot tell the user what it will decompress to
-
lovetox
i can not ask them for a decision
-
lovetox
i can certainly not stop after 100MB decompressed file
-
moparisthebest
conversations has a setting where you set a limit to download automatically firefox just shows you in progress downloads clearly and it's up to user to press "cancel" if it gets too big
-
lovetox
you say i should add a second counter to every progress bar, which tracks "Disk Size"
-
moparisthebest
you could say "we have no idea how big this will be, want it ?" and/or have them set a limit
-
lovetox
thats an interesting question .. is the progress bar in firefox showing disk size
-
lovetox
or downloaded content
-
moparisthebest
iirc firefox and all download trackers I know only show disk size
-
lovetox
thats maybe the solution, i should show decompressed disk size
-
moparisthebest
so you can HEAD without compression to maybe get uncompressed size
-
moparisthebest
but, might not have it, and also might lie
-
kuyuhi
> iirc firefox and all download trackers I know only show disk size additionally, as an end user, i dont know why id care about the number of bytes technically downloaded either ↺
-
vpzom
it would matter for metered connections
-
moparisthebest
also a good question, ff has that "this file is Xmb big" how does it get that number? is it doing a HEAD 🤔
-
vpzom
I would assume it's just doing GET and discarding the data if you decline
-
moparisthebest
no but with compression a GET doesn't tell you final file size
-
vpzom
apparently gzip at least has its own headers that can specify the original size