When you come back from vacation
@programmerhumor

39 points

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

permalink
report
reply
22 points

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

permalink
report
reply
20 points

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

permalink
report
parent
reply
12 points
Deleted by creator
permalink
report
parent
reply
6 points

Like this I think

if [1]; then
    echo "hi"
fi
permalink
report
parent
reply
4 points

And then there’s stupid Cpp with

if (true) {
  do();
}

Or

if THIS
  do();
endif 
permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
12 points
*
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

permalink
report
reply
1 point

@LazaroFilm well done :D

permalink
report
parent
reply
11 points

I’m more

Hello print("World")
permalink
report
reply
4 points

im more of a c person index[array]

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.5K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments