Spyke

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

39
lemmy.world

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

22
unagireply
feddit.nl

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

21
LazaroFilmreply
lemmy.world

And then there’s stupid Cpp with

if (true) {
  do();
}

Or

if THIS
  do();
endif 
3
lemmy.world
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

12
void HelloWorld(void (* func)(const char*)) {
    func("Hello world!");
}
1

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

1

You reached the end

When you come back from vacation | Spyke