188
submitted 4 days ago* (last edited 3 days ago) by qaz@lemmy.world to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] fibojoly@sh.itjust.works 32 points 3 days ago

I'm amazed at developers who don't grasp that you don't need to have absolutely everything under the sun in a human readable file format. This is such a textbook case...

[-] chaospatterns@lemmy.world 14 points 3 days ago

Yeah this isn't even human readable even when it's in YAML. What am I going to do? Read the floats and understand that the person looked left?

[-] squaresinger@lemmy.world 2 points 2 days ago

It's human-readable enough for debugging. You might not be able to read whether a person look left, but you can read which field is null or missing or wildly out of range. You can also read if a value is duplicated when it shouldn't be.

Human-readable is primarily about the structure and less about the data being human readable.

[-] vivendi@programming.dev -1 points 2 days ago* (last edited 2 days ago)

You could also not be an idiot and write a debug script that checks those values or atleast provides an interface

But I guess they don't teach that kind of thing in the javascript and python school of dogshit programming

[-] squaresinger@lemmy.world -1 points 2 days ago* (last edited 1 day ago)

Who pissed in your coffee?

Sure you can write some script to interpret the data, but then you need to write an extra script that you need to run any time you step through the code, or whenever you want to look at the data when it's stored or transferred.

But I guess you have never worked on an actually big project, so how would you know?

I guess you aren't entirely wrong here. If nobody other than you ever uses your program and nobody other than you ever looks at the code, readability really doesn't matter and thus you can microoptimize everything into illegibility. But don't extrapolate from your hobby coding to actual projectes.

[-] vivendi@programming.dev -1 points 22 hours ago

LMFAO in my turf if we need to constantly check some values we either have a hook or a wrapped Stream

Weak diss

[-] squaresinger@lemmy.world -1 points 21 hours ago* (last edited 21 hours ago)

I was discussing topical points. You were here "dissing".

That's poor behaviour and seriously just childish. Clearly not professional in any way. Probably like your code.

[-] marcos@lemmy.world 13 points 3 days ago

Even if you want it to be human readable, you don't need to include the name into every field and use balanced separators.

Any CSV variant would be an improvement already.

[-] fibojoly@sh.itjust.works 6 points 3 days ago

Even using C#'s decimal type (128bit) would be an improvement! I count 22 characters per numbers here. So a minimum of 176bit.

[-] Dultas@lemmy.world 4 points 3 days ago

That's it everyone, back to copybooks.

[-] FuckBigTech347@lemmygrad.ml 3 points 3 days ago

Exactly. All modern CPUs are so standardized that there is little reason to store all the data in ASCII text. It's so much faster and less complicated to just keep the raw binary on disk.

this post was submitted on 04 Jul 2025
188 points (98.5% liked)

Programmer Humor

24815 readers
653 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 2 years ago
MODERATORS