Editing 1277: Ayn Random
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
| title = Ayn Random | | title = Ayn Random | ||
| image = ayn random.png | | image = ayn random.png | ||
− | | titletext = In a cavern deep below the Earth, Ayn Rand, Paul Ryan, Rand Paul, Ann Druyan, Paul Rudd, Alan Alda, and Duran Duran meet | + | | titletext = In a cavern deep below the Earth, Ayn Rand, Paul Ryan, Rand Paul, Ann Druyan, Paul Rudd, Alan Alda, and Duran Duran meet togther in the Secret Council of /(\b[plurandy]+\b ?){2}/i. |
}} | }} | ||
==Explanation== | ==Explanation== | ||
− | + | {{incomplete}} | |
− | + | This comic begins with a pun on {{w|Ayn Rand}}, the name of a writer who created a philosophical system known as {{w|Objectivism (Ayn Rand)|Objectivism}}. Objectivists believe that the primary aim of life is to maximise personal happiness. In their view, if some humans are born more capable of satisfying their desires than other people, they deserve to reap greater rewards from life than others. In the comic, White Hat uses a similar line of reason to justify some numbers appearing more often than others in a "random" number generator. | |
− | + | The title text identifies a group of people whose names match the {{w|regular expression}} <code>/(\b[plurandy]+\b ?){2}/i</code>. A step-by-step explanation of the expression: | |
− | + | *\b is a word boundary, matching anywhere there is a 'word character' next to a non-word character—punctuation, digit, spacing, etc. | |
− | + | *[plurandy] is a character class, and will match any single character from the set inside the square brackets | |
− | |||
− | The title text identifies a group of people whose names match the {{w|regular expression}} <code | ||
− | *\b is a word boundary, matching anywhere there is a 'word character' next to a non-word | ||
− | *[plurandy] is a character class, and will match any single character from the set inside the square brackets | ||
*the plus sign means ''one or more'' of the previous thing, so [plurandy]+ matches one or many of the characters in that class, one after the other | *the plus sign means ''one or more'' of the previous thing, so [plurandy]+ matches one or many of the characters in that class, one after the other | ||
*" ?" - a space followed by a question mark: "?" means "0 or 1 of the previous thing", so a space is optional | *" ?" - a space followed by a question mark: "?" means "0 or 1 of the previous thing", so a space is optional | ||
*the whole section in parentheses (\b[plurandy]+\b ?) translates to "a word containing one or more letters, all of which are in the set [plurandy], followed by an optional space" | *the whole section in parentheses (\b[plurandy]+\b ?) translates to "a word containing one or more letters, all of which are in the set [plurandy], followed by an optional space" | ||
− | *the {2} on the end means to repeat the pattern | + | *the {2} on the end means to repeat the pattern twice |
*The slashes at each end mark out the pattern, and the "i" at the end is an expression qualifier means it is "case insensitive" (uppercase and lowercase match interchangeably) | *The slashes at each end mark out the pattern, and the "i" at the end is an expression qualifier means it is "case insensitive" (uppercase and lowercase match interchangeably) | ||
− | Overall, it matches two words separated by a space, composed entirely of the letters in [plurandy], which is what all the names listed have in common | + | Overall, it matches two words separated by a space, composed entirely of the letters in [plurandy], which is what all the names listed have in common. |
{| class="wikitable" | {| class="wikitable" | ||
Line 31: | Line 27: | ||
! Person !! Brief Description | ! Person !! Brief Description | ||
|- | |- | ||
− | + | | {{w|Ayn Rand}} || Author, best known for her novels {{w|The Fountainhead}} and {{w|Atlas Shrugged}}. | |
|- | |- | ||
− | + | | {{w|Paul Ryan}} || US Politician known to have been influenced by the writings of Ayn Rand. | |
|- | |- | ||
− | + | | {{w|Rand Paul}} || US Politician, also influenced by Ayn Rand's writings. | |
|- | |- | ||
− | + | | {{w|Ann Druyan}} || Author | |
|- | |- | ||
− | + | | {{w|Paul Rudd}} || Actor, screenwriter, comedian | |
|- | |- | ||
− | + | | {{w|Alan Alda}} || Actor, best know for the role of Hawkeye Pierce in the TV series M*A*S*H | |
|- | |- | ||
− | + | | {{w|Duran Duran}} || New Wave/Rock band | |
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Transcript== | ==Transcript== | ||
:[Cueball sitting at a laptop, White Hat behind him.] | :[Cueball sitting at a laptop, White Hat behind him.] | ||
− | :Cueball: This Ayn Random number generator you wrote | + | :Cueball: This Ayn Random number generator you wrote ''claims'' to be fair, but the output is biased toward certain numbers. |
− | :White Hat: ''''' | + | :White Hat: '''''Well, maybe those numbers are just intrinsically better!''''' |
{{comic discussion}} | {{comic discussion}} | ||
Line 63: | Line 54: | ||
[[Category:Philosophy]] | [[Category:Philosophy]] | ||
[[Category:Math]] | [[Category:Math]] | ||
− | |||
− |