Anyone who’s been following the past few weird entries in the blog would have noticed that there has been some python content posted and a promise of more to come. Well I am no longer completely sure about the more, it will probably come about eventually, since the hack fulfills something for me, but various factors, including a few not listed above, and to be expanded on later make it less important. However, this is not about my previous posts, this is more about an underlying cause. You see right until a few weeks ago I’d never have used Python in my right mind, it always had C to contend with, and I hadn’t been writing anything for fun for a while. I really haven’t been doing too many things for fun at Brown, except things whihc are an explicit, forced attempt to engage in fun, and these explicit forced attempts while being somewhat fun, haven’t fulfilled any particular niche in my life. But this is where New York, and some of its brilliantness come in and change this, but we’ll deal with this change soon. See, back when I was younger, the world was less bleak, and I didn’t worry quite as much about how to finish all the homework I accumulated on a daily basis, I used to code for fun. Sometimes I used to even wake up early and code for fun, because this was umm fun. The code didn’t serve any particular purpose, sometimes it did, but usually it was all about trying to do something which other, cooler, people did, and see what came out of it. And then I stopped, sort of with the rest of the things I did for fun, I am sure I can assign explicit blame to certain circumstances, institutions and events, but essentially I didn’t try hard enough to maintain any of this. And then I came to Brown, and we did a lot of Scheme the first semester I was here, and well who needed to code for fun when schoolwork involved Scheme. No that wasn’t sarcastic, I do believe coding in Scheme was one of the most fun things I did my first semester at Brown, and it is a shame no one continues it past the first semester. Sure, the one company I have worked for does not have too many programmers who work in Scheme or any LISP derivative, but that is their loss. So anyways, come summer, I was bored, and um work was meh for a little bit, and coding in something sounded like a good idea, and I wanted to work on this hack of mine before Apple anounced the new MacBook Pros with the shiny new Merom chips (bah Apple), and well I started using C and figured that umm while I loved C, and statefulness in C is easily implemented, this was perhaps a good time to delve into C++, STL and all the amazing benifits people keep talking about. Well ok, as an aside, I did end up using a lot of the STLed goodness at work, and umm, yes STL has its benifits, and it sort of has improved, but I digress. The problem as I saw it was that none of the languages made me happy about playing around with them, and that was one of the Python things I really enjoyed. Which bringus up the obvious question of what’s so special about Python, sure the fact that everyone’s forced to write pretty code is sort of cool, though indentation instead of parens was weird and hard at the beginning, and any mention of Python always brings up questions about Ruby. Well yes I have tried Ruby, and it seems like a very powerful language, however the semantics are somewhat ambiguous, which drives me crazy, and I didn’t find it as simple to adapt to as Python. But, and this is funny, one of the things I have been playing around with in Python is using functions as a datatype, passing them around, doing things in a simpler way. I really like functional languages, sure some people argue about the lack of loops being weird, but recursion is pretty easy to accomplish, and writing good tail recursive procedures is almost as cool. And well, I have sort of gone back to playing with Scheme, and learning all the things I didn’t learn about it so far, like macros and syntax definitions, and I am happy about it, since lambda rules, and no I am not going to go out there and develop a new mail client in scheme, or some such, but in terms of just having fun with a language, Scheme’s really cool. Oh and all this programming language trying out comes at the expense of a wishlist of books at Amazon, now if only they made the entire Schemer series of books available in India, hmmmmmmmmmmmmmm.
According to this reputed source of information, New York has one of the highest newspaper sales in the world because people read newspapers on the subway. While this might be true, I haven’t come across too many subway cars full of people reading newspapers. That being said, commuting to and fro New York has certainly allowed me to read far more books than I had planned for, and that’s one of the weird things I have been observing about New York. I don’t think I have used libraries as much as I have in New York, and well that’s saying a lot, since I really didn’t use it that much. I am one of those people who buys books, it is what I tend to do, and as far as I am concerned it is easier to do at home, than actually go to a library. The last time I was really a member of a library which wasn’t at my school, was in Delhi, a library which held little promise in terms of books for anything other than random British fiction, a collection of books in which very few were actually of interest, and fewer still which were new. Even if there were books, there was the effort required to actually get to this place and convincing my parents to drive me there. That’s sort of the cool thing about New York, if there’s anaything around, you really don’t need a car to get to it, which is helpful, but I digress. The NYPL isn’t like the British Council library, it has books you could actually read, which is cool. In general I like New York, and this entry is dead, so up it goes.
Ze Panda