this post was submitted on 21 Nov 2023
93 points (95.1% liked)

Programming Horror

1891 readers
1 users here now

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there's also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @[email protected]

Rules

Credits

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 11 points 1 year ago (1 children)

I may put this on a slide for the Code Smells part of Refactoring lecture I have coming up.

[โ€“] PoolloverNathan 2 points 1 year ago* (last edited 1 year ago)

There's a semi-global r that is declared in a completely normal file and almost every file adds to it in some way.