Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 年前

New File Format

lemmy.ml

message-square
84
fedilink
704

New File Format

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 年前
message-square
84
fedilink
  • space@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    63
    ·
    2 年前

    Also renamed xml, renamed json and renamed sqlite.

    • TrustingZebra
      link
      fedilink
      arrow-up
      19
      ·
      2 年前

      Those sound fancy, I just use renamed txt files.

      • neo (he/him)@lemmy.comfysnug.space
        link
        fedilink
        English
        arrow-up
        22
        ·
        2 年前

        .ini is that you?

        • Natanael@slrpnk.net
          link
          fedilink
          arrow-up
          6
          ·
          2 年前

          yaml

        • hemko@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 年前

          It’s everything

          • neo (he/him)@lemmy.comfysnug.space
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 年前

            surprised pikachu face

        • TheAnonymouseJoker@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          11 个月前

          Removed by mod

    • HTTP_404_NotFound@lemmyonline.com
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 年前

      Amateurs.

      I have evolved from using file extensions, and instead, don’t use any extension!

      • H4mi@lemm.ee
        link
        fedilink
        arrow-up
        18
        ·
        2 年前

        I don’t even use a file system on my storage drives. I just write the file contents raw and try to memorize where.

        • Ms. ArmoredThirteen@lemmy.ml
          link
          fedilink
          arrow-up
          10
          ·
          2 年前

          Sounds tedious, I’ve just been keeping everything in memory so I don’t have to worry about where it is.

          • 257m@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            2 年前

            Sounds inefficient. You can only store 8 gigs and goes away when you shut off your computer? I just put it on punch cards and feed it into my machine.

            • Björn Tantau@swg-empire.de
              link
              fedilink
              arrow-up
              2
              ·
              2 年前

              So archaic. Real men just flap a butterfly’s wings so that they deflect in cosmic rays in such a way that they flip the desired bits in RAM.

              • 257m@lemmy.ml
                link
                fedilink
                arrow-up
                2
                ·
                2 年前

                As yes good old M-x-Butterfly.

      • MonkderZweite@feddit.ch
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 年前

        I use mime. Because magic bit.

      • dan@upvote.au
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 年前

        Linux mostly doesn’t use file extensions… It relies on “magic bytes” in the file.

        Same with the web in general - it relies purely on MIME type (e.g. text/html for HTML files) and doesn’t care about extensions at all.

        • fibojoly@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          “Magic bytes”? We just called them headers, back in my day (even if sometimes they are at the end of the file)

          • dan@upvote.au
            link
            fedilink
            arrow-up
            4
            ·
            2 年前

            The library that handles it is literally called “libmagic”. I’d guess the phrase “magic bytes” comes from the programming concept of a magic number?

            • fibojoly@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              2 年前

              I did not know about that one! It makes sense though, because a lot of headers would start with, well yeah, “magic numbers”. Makes sense.

      • fibojoly@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 年前

        You can just go in Folder View and uncheck “hide known file extensions” to fix that! ;)

    • dan@upvote.au
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      2 年前

      SQLite explicitly encourages using it as an on-disk binary format. The format is well-documented and well-supported, backwards compatible (there’s been no major version changes since 2004), and the developers have promised to support it at least until the year 2050. It has quick seek times if your data is properly indexed, the SQLite library is distributed as a single C file that you can embed directly into your app, and it’s probably the most tested library in the world, with something like 500x more test code than library code.

      Unless you’re a developer that really understands the intricacies of designing a binary data storage format, it’s usually far better to just use SQLite.

    • 0x2d@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      Use binwalk on those

    • ScrewdriverFactoryFactoryProvider [they/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 年前

      Most of Adobe’s formats are just gzipped XML

      • Ineocla@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        Microsoft office also is xml

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 7 users / day
  • 734 users / week
  • 2.39K users / month
  • 9.86K users / 6 months
  • 441 local subscribers
  • 35.8K subscribers
  • 1.73K Posts
  • 37.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org