1404
D or d come on (i.imgur.com)
you are viewing a single comment's thread
view the rest of the comments

Right? I rather not have a computer automatically autocorrect.

[-] shotgun_crab@lemmy.world 5 points 1 year ago

Yeah, and I think most shells will correct this case by pressing tab

[-] AffineConnection@lemmy.world 3 points 1 year ago

Also, I constantly name files in the same directory the same thing except for case. In my ~/tmp directory I have unrelated foo.c (C source) and foo.C (C++ source).

[-] winky88@startrek.website 4 points 1 year ago
[-] Zagorath@aussie.zone 2 points 1 year ago

Why not .cpp for C++? I don’t use C++, but I thought that was the standard.

[-] AffineConnection@lemmy.world 8 points 1 year ago* (last edited 1 year ago)

.C came first. I don't usually use it though; I usually use .cc or .cxx, but if I'm making some tiny test source, I often use .C. I'm strongly opposed to the .cpp extension because calling C++ "CPP" leads to confusion with the preexisting (before C++) use of the initialism to refer to the C preprocessor. There's a reason why CPPFLAGS refers to preprocessor flags and CXXFLAGS refers to C++ flags.

[-] ThatHermanoGuy@midwest.social 1 points 1 year ago
[-] AffineConnection@lemmy.world 1 points 1 year ago

But then the filename wouldn't be /^[[:alnum:]._-]*~*$/.

this post was submitted on 02 Oct 2023
1404 points (96.8% liked)

Programmer Humor

19623 readers
1 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