565

When you come back from vacation
@programmerhumor

all 13 comments
sorted by: hot top controversial new old
[-] WhatAmLemmy@lemmy.world 38 points 1 year 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".

[-] Dasnap@lemmy.world 21 points 1 year ago

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

[-] unagi@feddit.nl 19 points 1 year ago

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

[-] exu@feditown.com 5 points 1 year ago

Like this I think

if [1]; then
    echo "hi"
fi
[-] LazaroFilm@lemmy.world 3 points 1 year ago

And then there’s stupid Cpp with

if (true) {
  do();
}

Or

if THIS
  do();
endif 
[-] ActuallyRuben@actuallyruben.nl 2 points 1 year ago

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

[-] LazaroFilm@lemmy.world 12 points 1 year ago* (last edited 1 year ago)
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

[-] anders@rytter.me 1 points 1 year ago
[-] giant_smeeg@feddit.uk 11 points 1 year ago

I'm more

Hello print("World")
[-] cryoistalline@lemmy.ml 4 points 1 year ago

im more of a c person index[array]

[-] nthcdr@lemmy.sdf.org 1 points 1 year 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.

[-] cs127@lemmy.sdf.org 1 points 1 year ago
void HelloWorld(void (* func)(const char*)) {
    func("Hello world!");
}
this post was submitted on 16 Aug 2023
565 points (96.7% liked)

Programmer Humor

32380 readers
1300 users here now

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

Rules:

founded 5 years ago
MODERATORS