this post was submitted on 15 Jan 2025
91 points (98.9% liked)

Programmer Humor

33162 readers
157 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

A small collection of WTF code snippets sorted by language.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 3 weeks ago (2 children)

Are we supposed to be able to scroll through the examples? Also, it's odd to see expected behavior in there.

[–] [email protected] 1 points 2 weeks ago (1 children)

Make sure, you're not blocking fontawesome.com in NoScript or whatever content blocker you might be using. All the UI buttons depend on that to be available...

[–] [email protected] 2 points 2 weeks ago

I'm raw-dogging Chrome and Android and there are no navigation controls, just the dropdown and reveal.

[–] [email protected] 5 points 3 weeks ago (1 children)

The C# example works exactly as you'd expect.. Actually most of them do

[–] [email protected] 2 points 3 weeks ago (1 children)

The compiler optimization example (IIRC #6) was unexpected, when just looking at the code

[–] [email protected] 3 points 2 weeks ago (1 children)
[–] [email protected] 1 points 2 weeks ago (1 children)

Hey, don't you curse on my bread and butter! ;⁠-⁠)

[–] [email protected] 2 points 2 weeks ago

I'm sorry you gotta deal with that