You are viewing a single thread.
View all comments
64 points

Also renamed xml, renamed json and renamed sqlite.

permalink
report
reply
20 points

Those sound fancy, I just use renamed txt files.

permalink
report
parent
reply
23 points

.ini is that you?

permalink
report
parent
reply
7 points

yaml

permalink
report
parent
reply
6 points

It’s everything

permalink
report
parent
reply
1 point
*
Removed by mod
permalink
report
parent
reply
9 points
*

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.

permalink
report
parent
reply
9 points

Amateurs.

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

permalink
report
parent
reply
20 points

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

permalink
report
parent
reply
11 points

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

permalink
report
parent
reply
4 points
*

I use mime. Because magic bit.

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
4 points

Use binwalk on those

permalink
report
parent
reply

Most of Adobe’s formats are just gzipped XML

permalink
report
parent
reply
2 points

Microsoft office also is xml

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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.

Community stats

  • 3.7K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments