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

Programmer Humor

39123 readers
397 users here now

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

Rules:

founded 6 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
[–] SpaceNoodle@lemmy.world 4 points 10 months ago (2 children)

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

[–] ryannathans@aussie.zone 5 points 10 months ago (1 children)

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

[–] naeap@sopuli.xyz 2 points 10 months ago (1 children)

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

[–] ryannathans@aussie.zone 3 points 10 months ago (1 children)
[–] naeap@sopuli.xyz 1 points 10 months ago (1 children)

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

[–] ryannathans@aussie.zone 2 points 10 months ago

I'm sorry you gotta deal with that

[–] Ephera@lemmy.ml 1 points 10 months 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...

[–] SpaceNoodle@lemmy.world 2 points 10 months ago

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