this post was submitted on 08 Sep 2024
1230 points (98.3% liked)

Programmer Humor

32386 readers
714 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 38 points 2 months ago* (last edited 2 months ago) (3 children)

It’s not a waste of time… it’s a waste of space. But it does allow you to “enforce” some schema. Which, very few people use that way and so, as a data store using JSON works better.

Or… we could go back to old school records where you store structs with certain defined lengths in a file.

You know what? XML isn’t looking so bad now.

If you want to break the AI ask instead what regex you should use to parse HTML.

[–] [email protected] 11 points 2 months ago (2 children)

Had to work with a fixed string format years ago. Absolute hell.

Something like 200 variables, all encoded in fixed length strings concatenated together. The output was the same.

...and some genius before me used + instead of stringbuilders or anything dignified, so it ran about as good as lt. Dan.

[–] [email protected] 1 points 2 months ago

Oof. That sounds horrible

load more comments (1 replies)
load more comments (1 replies)