571
submitted 2 years ago by [email protected] to c/[email protected]

When you come back from vacation
@programmerhumor

all 12 comments
sorted by: hot top new old
[-] [email protected] 40 points 2 years ago

I legitimately lol'd at this. Any time I return from a couple weeks off I'm like "what year is it" + "can you repeat all the stuff about the things".

[-] [email protected] 22 points 2 years ago

Me temporarily forgetting the structure of an if statement in Shell.

[-] [email protected] 20 points 2 years ago

I write shell scripts only very occasionally and have to look this up every time.

[-] [email protected] 6 points 2 years ago

Like this I think

if [1]; then
    echo "hi"
fi
[-] [email protected] 4 points 2 years ago

And then there’s stupid Cpp with

if (true) {
  do();
}

Or

if THIS
  do();
endif 
[-] [email protected] 3 points 2 years ago

What's weird about the C++ one? At least that one is the same in a bunch of languages

[-] [email protected] 11 points 2 years ago

I'm more

Hello print("World")
[-] [email protected] 11 points 2 years ago* (last edited 2 years ago)
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

[-] [email protected] 3 points 2 years ago

im more of a c person index[array]

[-] [email protected] 1 points 2 years ago

(format t “Hello ~a” 'World). If I’m on vacation and come back to the land of C based languages I will have reverted to the only syntax I enjoy working in.

[-] [email protected] 1 points 2 years ago
void HelloWorld(void (* func)(const char*)) {
    func("Hello world!");
}
this post was submitted on 16 Aug 2023
571 points (96.7% liked)

Programmer Humor

37192 readers
245 users here now

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

Rules:

founded 5 years ago
MODERATORS