this post was submitted on 06 Jul 2024
947 points (99.4% liked)

Programmer Humor

19572 readers
870 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

via: @memes@wetdry.world

https://wetdry.world/@memes/112717700557038278

the sqlite codebase is a gem.

tldr; mcaffee made a shit ton of sqlite files in the temp folder causing people to call the sqlite devs phone angrily. now they name all files etilqs to prevent this.

Text from the screenshot:

2006-10-31: The default prefix used to be "sqlite_". But then Mcafee started using SQLite in their anti-virus product and it started putting files with the "sqlite" name in the c:/temp folder. This annoyed many windows users. Those users would then do a Google search for "sqlite", find the telephone numbers of the developers and call to wake them up at night and complain. For this reason, the default name prefix is changed to be "sqlite" spelled backwards. So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

Code found at: https://github.com/sqlite/sqlite/blob/master/src/os.h#L65 (The line numbers in the screenshot and the code don't match up)

you are viewing a single comment's thread
view the rest of the comments
[–] bleistift2@sopuli.xyz 50 points 4 months ago* (last edited 4 months ago) (18 children)

Forgive my ignorance. SQLite is a database software. Why would McAffee create lots of database files?

[Edit:] I’m not asking why a program needs to store data. I’m asking why that necessitates many files. One database file (or one per table) should be enough, right?

[–] towerful@programming.dev 53 points 4 months ago (9 children)

Sqlite is a great embedded database.
If you are storing lots and lots of information in a JSON file, CSV file, or coming up with your own serialisation... Chances are, sqlite is going to do it better.
I know loads of android apps use sqlite for storage. I've also managed to open quite a few programmes "proprietary" file format in sqlite.

[–] anton@lemmy.blahaj.zone 64 points 4 months ago* (last edited 4 months ago) (8 children)

A yes, the two genders of binary file formats: renamed sqlite file and renamed zip folder.

[–] ElderWendigo@sh.itjust.works 1 points 4 months ago (2 children)

Aren't sqilte files themselves (like most other things) just fancy text files?

[–] FooBarrington@lemmy.world 15 points 4 months ago (1 children)

Nah, only actual string data is stored as text. Everything else is stored as binary: https://www.sqlite.org/fileformat.html#record_format

The file also isn't written sequentially, it's stored in blocks (pages), where sometimes later data can be inserted in the middle (e.g. when data was deleted).

[–] ElderWendigo@sh.itjust.works 4 points 4 months ago (1 children)
[–] FooBarrington@lemmy.world 18 points 4 months ago (2 children)

Then I guess my laptop is just a fancy boat.

[–] tofubl@discuss.tchncs.de 4 points 4 months ago

Haven't seen your laptop, but if it's anything like mine it's a very lousy boat.

[–] Laser@feddit.org 3 points 4 months ago
load more comments (5 replies)
load more comments (5 replies)
load more comments (13 replies)