jdev - 2026-11-04


  1. 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.

  2. 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!)_

  3. 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)

  4. 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.

  5. 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

  6. lovetox

    question the client developers, are you using for http always "identity" encoding, or do you allow compression

  7. lovetox

    i think it would be useful especially for stuff like link preview where we download websites

  8. lovetox

    for other stuff like classic file transfer of pictures, videos etc, it probably is useless

  9. moparisthebest

    why wouldn't you allow compression? I'd expect most http libs to automatically handle that for you

  10. lovetox

    yes but they not necessarily protect you from decompression bombs

  11. moparisthebest

    (but make sure you've updated your brotli dep and CAs this last week lol)

  12. moparisthebest

    if they don't that's a security bug you should report upstream

  13. moparisthebest

    I think I still have my test server up for that and/or can start it again and find the URL later...

  14. lovetox

    https://securelayer7.net/lab/cve-2026-84382-httpx2-decompression-amplification-oom

  15. moparisthebest

    excellent

  16. lovetox

    they fixed it a while ago, but not like you think

  17. lovetox

    as i read it, its now guaranteed that its not decompressing in memory

  18. lovetox

    as a whole

  19. lovetox

    the give it to you in chunks, but still everything

  20. lovetox

    so it seem i have to check myself continously how much i downloaded

  21. lovetox

    and apply some limit

  22. moparisthebest

    I think that's always true with or without compression

  23. lovetox

    but its harder, as you dont know the decompressed size

  24. lovetox

    if a server offers some content size, you can judge if its ok, and then abort if its over that

  25. lovetox

    what you do with compressed content? apply a ratio?

  26. lovetox

    if it goes over 1:10? 1:100? fixed limit?

  27. moparisthebest

    server never has to offer a content size at all

  28. lovetox

    then you can assume one, same thing

  29. moparisthebest

    it can just stream you unlimited uncompressed data too, so you need a solution anyway and compression doesn't matter

  30. 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

  31. lovetox

    you can only catch this with some ratio that you apply, or with a fixed limit

  32. lovetox

    i never write more than X MB uncompressed .. or whatever

  33. lovetox

    i guess i set a 1:10 ratio and lets see how many users complain

  34. lovetox

    or disable compression altogether

  35. lovetox

    or maybe enable it only for link previews, where i can easily set a hard limit

  36. lovetox

    i think thats the way

  37. moparisthebest

    I think I covered this here https://www.moparisthebest.com/httppppppppppp-upload/#advice-for-http-using-devs

  38. moparisthebest

    I'm not following how compression changes anything at all

  39. lovetox

    because the value is not obvious, it can only be gathered by experience

  40. lovetox

    if someone uploads a 100 mb logfile compressed logfile, should i disallow to download it? ✎

  41. lovetox

    if someone uploads a 100 mb compressed logfile, should i disallow to download it? ✏

  42. lovetox

    to what will it uncompress? 1 GB? is this too much or not?!

  43. moparisthebest

    you never know how much data a random url will return, so you have to deal with that somehow

  44. 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

  45. lovetox

    if i see a 100 MB logfile, i cannot tell the user what it will decompress to

  46. lovetox

    i can not ask them for a decision

  47. lovetox

    i can certainly not stop after 100MB decompressed file

  48. 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

  49. lovetox

    you say i should add a second counter to every progress bar, which tracks "Disk Size"

  50. moparisthebest

    you could say "we have no idea how big this will be, want it ?" and/or have them set a limit

  51. lovetox

    thats an interesting question .. is the progress bar in firefox showing disk size

  52. lovetox

    or downloaded content

  53. moparisthebest

    iirc firefox and all download trackers I know only show disk size

  54. lovetox

    thats maybe the solution, i should show decompressed disk size

  55. moparisthebest

    so you can HEAD without compression to maybe get uncompressed size

  56. moparisthebest

    but, might not have it, and also might lie

  57. 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 ↺

  58. vpzom

    it would matter for metered connections

  59. moparisthebest

    also a good question, ff has that "this file is Xmb big" how does it get that number? is it doing a HEAD 🤔

  60. vpzom

    I would assume it's just doing GET and discarding the data if you decline

  61. moparisthebest

    no but with compression a GET doesn't tell you final file size

  62. vpzom

    apparently gzip at least has its own headers that can specify the original size