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

Programmer Humor

32893 readers
941 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
[–] SpaceNoodle@lemmy.world 4 points 2 days 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 4 points 2 days ago (1 children)

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

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

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

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

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

[–] ryannathans@aussie.zone 1 points 1 day ago

I'm sorry you gotta deal with that

[–] Ephera@lemmy.ml 2 points 2 days 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 2 days ago

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