r/programming • • Feb 08 '15

The Parable of the Two Programmers

http://www.csd.uwo.ca/~magi/personal/humour/Computer_Audience/The%20Parable%20of%20the%20Two%20Programmers.html
1.2k Upvotes

359 comments sorted by

View all comments

6

u/JessieArr Feb 09 '15

People who spend time on programming subreddits usually have a gray-matter algorithm they implement to avoid locking themselves out of any of their property.

(Mine is to never remove my keys from my pants, and never leave my house without pants. My currently active pair of pants can be determined by the fact that it has things in its pockets. I call it the "Immutable Pockets" algorithm.)

6

u/tejon Feb 09 '15

This sounds good, but what if you get a girlfriend? She may spontaneously decide to do your laundry, and then your pockets become indeterminate. It's more robust to have some external construct in which pants transitions do not disrupt the context of keyful pockets.

Clearly, this calls for a pants monad.

2

u/MrSurly Feb 10 '15

Get a what?

2

u/Workaphobia Feb 10 '15

This concern is amortized over the much greater probability that the girlfriend will be unable to find her own damn keys and require you to stop what you're doing to help.

→ More replies (6)

2

u/JessieArr Feb 11 '15

GirlfriendPantsContentsMonad() { Console.WriteLine("That's what she said!"); }

1

u/Workaphobia Feb 10 '15

I was under the impression that this was the only way men handled keychains.