When you come back from vacation

When you come back from vacation
@programmerhumor

546 points · 12 comments · view on lemmy.world

12 Comments

WhatAmLemmy@lemmy.world · 39 pts · 3y

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 · 22 pts · 3y (5 replies)

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

unagi@feddit.nl · 21 pts · 3y (1 reply)

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

bela@lemm.ee · 12 pts · 3y
[ removed ]
exu@feditown.com · 6 pts · 3y

Like this I think

if [1]; then
    echo "hi"
fi
LazaroFilm@lemmy.world · 3 pts · 3y (1 reply)

And then there’s stupid Cpp with

if (true) {
  do();
}

Or

if THIS
  do();
endif 
ActuallyRuben@actuallyruben.nl · 3 pts · 3y

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

LazaroFilm@lemmy.world · 12 pts · 3y (1 reply)
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

anders@rytter.me · 1 pts · 3y

@LazaroFilm well done :D

giant_smeeg@feddit.uk · 11 pts · 3y

I'm more

Hello print("World")
cryoistalline@lemmy.ml · 4 pts · 3y

im more of a c person index[array]

cs127@lemmy.sdf.org · 1 pts · 3y
void HelloWorld(void (* func)(const char*)) {
    func("Hello world!");
}
nthcdr@lemmy.sdf.org · 1 pts · 3y

(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.