231 points · by kjhughes · 11y ago · 28 comments
> Implement, as best as you can, the identity function in your favorite language (or the second favorite, if your favorite language happens to be Haskell).
def identity(x): return x
> Implement the composition function in your favorite language. It takes two functions as arguments and returns a function that is their composition. def compose(f, g): return lambda *args, **kwargs: f(g(*args, **kwargs))
Testing these out: >>> compose(lambda x: x+1, lambda y: y-1)(0)
0
>>> compose(identity, identity)(0)
0http://mitpress.mit.edu/books/basic-category-theory-computer...
In other words, if you think this isn't relevant to the programming you do, it is likely that the programming you do is the exact kind of programming this was written to be relevant to.
You need to study math more broadly to use category theory. These intros and books for programmers just give overview of concepts. You need to study mathematics more deeply to actually use it in programming. Advanced algebra is must.
This site has nearly black serif type on a peach-ish white background. The layout, type choice, and color scheme seems to address pretty much every objection that I've seen the "I can't read light-colored text on any background" crowd advance.
Edit: Here's a screenshot from my machine: http://i.imgur.com/W2QcLAp.png (Chromium 41 on Linux)
Can you explain exactly what makes the site unreadable for you?
What do you mean by "square alignment"? Are you talking about the full-justified [0] body text? If you are, then:
1) This confuses me, as this is exactly what the "I can't read light-colored text on any background" crowd says that studies show improves readability.
2) What about the full-justified body text makes it difficult to read?
If you're not talking about the body text, then what are you talking about?
Thanks in advance! :)
[0] http://en.wikipedia.org/wiki/Typographic_alignment#Justified