||[Oct. 13th, 2006|02:08 pm]
I think I've started to reach the point where I view the programs I'm writing as functional by default, rather than continually retrospectively realizing that the complexity can be greatly reduced by functionally remodularizing the code.
I believe this is a significant event in the personal journey of any programmer, kinda like understanding for the first time how you can save hours of frustration by not using goto's. It involves a kind of intellectual transcendence, in the sense that you can't really appreciate what it's like to be there without actually being there.
Paul Graham said it best:
As long as our hypothetical Blub programmer is looking down the power continuum, he knows he's looking down. Languages less powerful than Blub are obviously less powerful, because they're missing some feature he's used to. But when our hypothetical Blub programmer looks in the other direction, up the power continuum, he doesn't realize he's looking up. What he sees are merely weird languages. He probably considers them about equivalent in power to Blub, but with all this other hairy stuff thrown in as well. Blub is good enough for him, because he thinks in Blub.
When we switch to the point of view of a programmer using any of the languages higher up the power continuum, however, we find that he in turn looks down upon Blub. How can you get anything done in Blub? It doesn't even have y.
By induction, the only programmers in a position to see all the differences in power between the various languages are those who understand the most powerful one. (This is probably what Eric Raymond meant about Lisp making you a better programmer.) You can't trust the opinions of the others, because of the Blub paradox: they're satisfied with whatever language they happen to use, because it dictates the way they think about programs.
I'm probably never going to learn to think in Lisp, mostly because I don't have the time, and because I don't think I can do without python's library support. Now and then I run into the limitations of not using the most powerful language available, such as when I find that I really need to use macros. I'm reminded of a Calvin quote: "I imagine bugs have a dim perception that nature played a cruel trick on them, but they lack the intelligence to comprehend the magnitude of it".
On a more pragmatic note, python's performance is killing me. I keep hearing about some superfast implementations but AFAIK they're still vaporware.