this post was submitted on 14 Jun 2026
699 points (99.9% liked)

Programmer Humor

31959 readers
1571 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] tunetardis@piefed.ca 7 points 1 week ago (11 children)

I guess strxfrm and the like date back to a period in the 80s when symbol names had to be kept short for the compiler/interpreter's sake. Like while BASIC back in those days technically allowed > 8 chr names, the interpreter only stored the first 8. In other words, the first 8 needed to be unique. As such, people tended to stick with <= 8 chr symbols to avoid interpreter issues. I think C allowed up to 31? But the culture of <= 8 prevailed nevertheless.

Then in the 90s, such restrictions were largely dropped in most languages, and symbol names ballooned in size to take advantage of this new freedom. In C++, you even had reserved words growing to the likes of reinterpret_cast around that time, but APIs just got ridiculous along the lines lengthy_class_name_followed_by_fully_spelled_out_method.

Today, people seem to have come to their senses and settled on more reasonable lengths, though not to 80s extremes. Like going back to C++, we have new reserved words like decltype and constexpr. In the 90s, these would likely have been spelled out in full like constant_expression?

[–] grozzle@lemmy.zip 8 points 1 week ago* (last edited 1 week ago) (3 children)

i still have a vague mistrust of file extensions longer than three characters.

like a glass walkway, i know .jpeg is just as safe as .jpg, but there's a hint of uneasiness.

[–] tunetardis@piefed.ca 5 points 1 week ago (2 children)

I also have a vague mistrust of non-alphanumerics in file extensions. Like while .c++ is fine, .cpp feels…safer?

[–] x74sys@programming.dev 2 points 1 week ago

.cc and .hh feels the most serious.

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