this post was submitted on 05 Sep 2023
403 points (94.7% liked)

Programmer Humor

19623 readers
2836 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 1 year ago
MODERATORS
 

"It's just easier to type" and other lies you believe

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 31 points 1 year ago (16 children)

Seriously though, why? Is there historic reasons for that? Did they have to pay extra for more letters back in the day?

[–] scurry 35 points 1 year ago (9 children)

Yes. Memory and storage were at a very high premium until the 1990s, and when C was first being developed, it wasn’t uncommon for computers to output to printers (that’s why print() and co are named what they are), so every character was at a premium. In the latter case, you were literally paying in ink and paper by the character. These contributed to this convention that we’re still stuck with today in C.

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

Thanks for the insight! I think this kind of convention that once made some sense, is now exclusively harmful, but is still followed meticulously, is often called "tradition" and is one of the high speed engines that let humanity drive towards extinction.

[–] scurry 5 points 1 year ago (1 children)

I agree, and these conventions are being followed less over time. Since the 1990s, Windows world, Objective-C, and C++ have been migrating away (to mixed results), and even most embedded projects have been too. The main problem is that the standard library is already like that, and one of C’s biggest selling point is that you can still use source written >40 years ago, and interact with that. So just changing that, at that point just use Go or something. I also want to say, shoutout to GNU for being just so obstinate about changing nothing except for what they make evil about style. Gotta be one of my top 5 ‘why can’t you just be good leaders, GNU?’ moments.

[–] [email protected] 6 points 1 year ago

at that point just use Go or something

*Rust (obviously!)

load more comments (6 replies)
load more comments (12 replies)