unset -f command_not_found_handle
For more on monoids, see Brent Yorgey's paper _Monoids: Theme and Variations (Functional Pearl)_ at <http://www.cis.upenn.edu/~byorgey/pub/monoid-pearl.pdf> (there's also a video of his talk at the Haskell…
Perhaps mistercow means things like def foo(): x = 5 def bar(): print x def baz(): x = 6 print x bar() baz() print x Which prints 5, 6, 5. If baz tried to print x before assigning, it would be an UnboundLocalError.
Not really -- "any" and "filter" are total functions, but "first" of an empty list is undefined. On the other hand, that also applies to foldl1 and {max,min}imum{,By}, so it's probably not the reason. The reason is…
You should add the word "web" to the title. There are many other kinds of caching.
That's a fixed-point combinator, but it's not actually the Y combinator; in fact, it defeats much of the purpose of Y, since it's defined using explicit recursion, which Y is designed to avoid. If you just want a clear…
"bar none" is a little excessive -- Haskell's syntax is probably even cleaner. Compare: 1. map (*2) [1..10] 2. sum [1..1000] -- sum = foldl (+) 0 3. any (`isInfixOf` tweet) wordlist 4. fileText <- readFile…
No, because robbing someone of their incentive to work is a net loss to society, so the bandits would no longer be perfect (unless they in turn gain a corresponding incentive to work, or some other equivalent gain).…
This title is designed to get people to click it (to discover what "The One Group" is), rather than to be informative. Please add e.g. ": Developers" to the end of it, so that people can click on it only if they…
The difference is that the whole point of the Y combinator is that it's a fixed-point combinator that doesn't use explicit recursion. Imagine that you didn't have "var", and couldn't name anything (which is the…
> The court determined that the discount was intended to encourage women to attend the bar in greater numbers, rather than to discourage attendance by males. Regardless of whether it should be legal or not,…
Here is Richard Feynman's answer to a similar question (this isn't about gravity but about this type of question): http://www.youtube.com/watch?v=wMFPe-DwULM
Some methods: 1. Change your layout from "USA" to "USA International (AltGr dead keys)". Then use right-alt+key to make various special characters (you can look at what each character does at "Show Current Layout"). 2.…
It is somewhat ironic that this article is on www.theonion.com...
That seems like a fairly cliché series of dichotomies. Life isn't black and white; if choices were always this clear-cut then they wouldn't be hard.
> Either that, or getting a Ph.D. in Education. Is this a Heinlein reference?
At any rate it violates Facebook's terms (http://www.facebook.com/terms.php, 4.5): "You will not use Facebook if you are under 13."
More Feynman on the same topic ("Energy makes it go"): http://physics.gu.se/~f3aamp/teaching/wakalix.html
See <http://news.ycombinator.com/item?id=277099> -- the linked post doesn't seem to work for me, but the first link in the first comment does.
> The singular "they", on the other hand, is artificial, at least among people of my generation -- we already have "one", thank you very much. Huh? Singular "they" has little to do with "one" -- it's used as an…
unset -f command_not_found_handle
For more on monoids, see Brent Yorgey's paper _Monoids: Theme and Variations (Functional Pearl)_ at <http://www.cis.upenn.edu/~byorgey/pub/monoid-pearl.pdf> (there's also a video of his talk at the Haskell…
Perhaps mistercow means things like def foo(): x = 5 def bar(): print x def baz(): x = 6 print x bar() baz() print x Which prints 5, 6, 5. If baz tried to print x before assigning, it would be an UnboundLocalError.
Not really -- "any" and "filter" are total functions, but "first" of an empty list is undefined. On the other hand, that also applies to foldl1 and {max,min}imum{,By}, so it's probably not the reason. The reason is…
You should add the word "web" to the title. There are many other kinds of caching.
That's a fixed-point combinator, but it's not actually the Y combinator; in fact, it defeats much of the purpose of Y, since it's defined using explicit recursion, which Y is designed to avoid. If you just want a clear…
"bar none" is a little excessive -- Haskell's syntax is probably even cleaner. Compare: 1. map (*2) [1..10] 2. sum [1..1000] -- sum = foldl (+) 0 3. any (`isInfixOf` tweet) wordlist 4. fileText <- readFile…
No, because robbing someone of their incentive to work is a net loss to society, so the bandits would no longer be perfect (unless they in turn gain a corresponding incentive to work, or some other equivalent gain).…
This title is designed to get people to click it (to discover what "The One Group" is), rather than to be informative. Please add e.g. ": Developers" to the end of it, so that people can click on it only if they…
The difference is that the whole point of the Y combinator is that it's a fixed-point combinator that doesn't use explicit recursion. Imagine that you didn't have "var", and couldn't name anything (which is the…
> The court determined that the discount was intended to encourage women to attend the bar in greater numbers, rather than to discourage attendance by males. Regardless of whether it should be legal or not,…
Here is Richard Feynman's answer to a similar question (this isn't about gravity but about this type of question): http://www.youtube.com/watch?v=wMFPe-DwULM
Some methods: 1. Change your layout from "USA" to "USA International (AltGr dead keys)". Then use right-alt+key to make various special characters (you can look at what each character does at "Show Current Layout"). 2.…
It is somewhat ironic that this article is on www.theonion.com...
That seems like a fairly cliché series of dichotomies. Life isn't black and white; if choices were always this clear-cut then they wouldn't be hard.
> Either that, or getting a Ph.D. in Education. Is this a Heinlein reference?
At any rate it violates Facebook's terms (http://www.facebook.com/terms.php, 4.5): "You will not use Facebook if you are under 13."
More Feynman on the same topic ("Energy makes it go"): http://physics.gu.se/~f3aamp/teaching/wakalix.html
See <http://news.ycombinator.com/item?id=277099> -- the linked post doesn't seem to work for me, but the first link in the first comment does.
> The singular "they", on the other hand, is artificial, at least among people of my generation -- we already have "one", thank you very much. Huh? Singular "they" has little to do with "one" -- it's used as an…