When you come back from vacation
@programmerhumor

You are viewing a single thread.
View all comments
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

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