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

Programmer Humor

32373 readers
558 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
[–] leisesprecher 11 points 1 month 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.

[–] Nithanim@programming.dev 1 points 1 month ago

We slowly need to interface with an app at work that uses fixed-width too. It does not sound that bad if you hear it but it sucks to figure out where you are missing whitespace when most fields are not used and therefore all whitespace. Oh, and of course there are a lot of fields, also are aligned/formatted differently based on their type and has thin/no/wrong documentation. And I have yet to find a simple but decent "debugger".

[–] SzethFriendOfNimi@lemmy.world 1 points 1 month ago

Oof. That sounds horrible