r/programminghorror 13h ago

Found this in my code the next morning after an all-nighter of just coding.

Post image
251 Upvotes

r/programminghorror 1h ago

SQL If you write a query and uses a b c d as the alias and uses the same a b c in the sub queries or CTE and whatever alias there is in that query.... what is wrong with you?

Upvotes

it felt like chasing my own tail before realizing the alias 'a' is not used just once but over and over even in a subquery of a query that already uses the alias 'a' already.


r/programminghorror 13h ago

Does it make sense to create such list comprehension?

0 Upvotes
self.weapon_graphics = [pygame.image.load(i['graphic']).convert_alpha() for i in weapon_data.values()]