this post was submitted on 13 Apr 2025
122 points (77.0% liked)

Programmer Humor

22837 readers
233 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] BlueKey@fedia.io 14 points 2 weeks ago (5 children)

Python should be one of the chaotics.
You can even dynamically create global variables in there.

[โ€“] Valmond@lemmy.world 5 points 2 weeks ago (3 children)

Or stick a new variable onto the instance of a class ๐Ÿคฏ

[โ€“] _stranger_@lemmy.world 4 points 1 week ago (2 children)

or return values for properties that don't exist, and only get created on access!

I love python.

[โ€“] BlueKey@fedia.io 1 points 1 week ago

Or have variables inside a loop hoisted up in the function. Fun when you capture them with lambdas.

load more comments (1 replies)
load more comments (1 replies)
load more comments (2 replies)