if you could pick a standard format for a purpose what would it be and why?

e.g. flac for lossless audio because…

(yes you can add new categories)

summary:

  1. photos .jxl
  2. open domain image data .exr
  3. videos .av1
  4. lossless audio .flac
  5. lossy audio .opus
  6. subtitles srt/ass
  7. fonts .otf
  8. container mkv (doesnt contain .jxl)
  9. plain text utf-8 (many also say markup but disagree on the implementation)
  10. documents .odt
  11. archive files (this one is causing a bloodbath so i picked randomly) .tar.zst
  12. configuration files toml
  13. typesetting typst
  14. interchange format .ora
  15. models .gltf / .glb
  16. daw session files .dawproject
  17. otdr measurement results .xml
  • kadu
    link
    fedilink
    12 years ago

    Dots yes, nested extensions no.

    The expected behavior is: you have a .exe binary called Example.exe. This is an executable.

    Now you zip it. It’s no longer an executable binary, it’s a zip archive. Yes, the data can be reconstructed into the original file - but it is not the original file. It should now be called Example.zip, as it is a zip file.

    This is important both for user mental models, but also because operating systems that use extensions as the primary indicator of file type often will hide known extensions by default, and the nested extensions in the name can create trouble.

    • @[email protected]
      link
      fedilink
      12 years ago

      Hiding part of a file name might be the real problem. A IMG.jpg.exe - would result in a harmless looking JPG, but it isn’t.

      • kadu
        link
        fedilink
        12 years ago

        A IMG.jpg.exe - would result in a harmless looking JPG, but it isn’t.

        True. Which is why getting people used to seeing .extension.extension2 is a terrible convention. Call a .zip a .zip, not a .exe.zip.

        • @[email protected]
          link
          fedilink
          12 years ago

          which will not stop a bad guy form doing so. Therefore dont hide part of a filename and get people used to seeing tar.gz