565

When you come back from vacation
@programmerhumor

you are viewing a single comment's thread
view the rest of the comments
[-] 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

this post was submitted on 16 Aug 2023
565 points (96.7% liked)

Programmer Humor

32380 readers
1351 users here now

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

Rules:

founded 5 years ago
MODERATORS