this post was submitted on 05 Mar 2025
93 points (97.9% liked)

Programmer Humor

34877 readers
80 users here now

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

Rules:

founded 5 years ago
MODERATORS
93
Finally (lemmy.ml)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
top 6 comments
sorted by: hot top controversial new old
[–] litchralee 6 points 1 month ago (1 children)

I once had the mispleasure to face a Bash script that was 35 lines tall but over 800 columns wide. The bulk of it was a two-dimensional array -- or rather, a behemoth that behaved like an array of arrays -- with way, way too many fields.

If that wasn't bad enough, my code review to essentially rotate the table 90 degrees was rejected because -- and I kid you not -- the change was unreviewable in any of our tools and thus deemed too risky to change. /facepalm

The gall of some people.

[–] [email protected] 2 points 1 month ago (1 children)

What was happening in/with that array?

[–] litchralee 0 points 1 month ago (1 children)

All it did was a lookup into a fairly sparse array. All the kerfuffle about it was unduly placed.

[–] [email protected] 1 points 1 month ago

That just leaves me with more questions, honestly.

[–] [email protected] 3 points 1 month ago (1 children)

Or a base64 encoded string

[–] admin 1 points 1 month ago* (last edited 1 month ago)

Ctrl + Shift + PgDown or arrow key