This is my team standing in front of our office excepting one who is taking the snap. Will put up nicer snaps when I get the time to shoot. This project seems to be challenging in terms of client facing, communicating, convincing, etc. Lets see how it goes. But one sad thing is that I had to cancel my trip to Leh because of this project. But as long as there is something new to learn,I am for it.
Sunday, August 28, 2005
Capitalized!
This is my team standing in front of our office excepting one who is taking the snap. Will put up nicer snaps when I get the time to shoot. This project seems to be challenging in terms of client facing, communicating, convincing, etc. Lets see how it goes. But one sad thing is that I had to cancel my trip to Leh because of this project. But as long as there is something new to learn,I am for it.
Sunday, August 07, 2005
Face the Music
Tuesday, August 02, 2005
What is meant by Data?
In a programmer's perspective, what exactly is data?
This is a very subtle concept. Very difficult to explain.
How do you say this programmatically? - Data is that which is defined by constructors and procedures, together with specified conditions that these procedures must fulfill in order to be a valid representation.
(define z (cons x y))
(car z) => x
(cdr z) => y
The interesting thing is that any triple of procedures that satisfies the above condition can be used as the basis for implementing pairs. This is one such triple:
(define (cons x y)
(lambda (m) (m x y)))
(define (car z)
(z (lambda (p q) p)))
(define (cdr z)
(z (lambda (p q) q)))
Friday, July 29, 2005
... and somebody had time for this.....
Obviously you would have come across a lot of useless things on the net... but today I fell upon two of these things in a row.
http://www.logogle.com/ggl.php?hl=ja&lo=SRK
and
http://webpages.mr.net/bobz/ttyquake/
don't look at them unless you are hopelessly jobless ;-)
Tuesday, July 26, 2005
Why?
From the last one year I was working on a large project and somewhat hidden from most of the nitty-gritties of an organization outside the problems of actual delivery of software. From the last one month, since I rolled out of that project, I am opening my eyes to some of these things. I have a few observations to make: This is probably true for any consulting firm.
- The delivery phase is actually just one part of a very large process.
- There is a lot of effort by a lot of people that goes in before an assignment actually comes through to the delivery stage.
I was hearing one of our senior executives talk about these matters (and a lot more things). Everything was so tangled up. Each and every decision which tries to untangle some of these things, brings with it a few more knots as well. As a whole, it is a chaotic environment. If you consider all the multitudes of things that humans are trying to do in this existence, I don't see any sort of order in this at all. It feels as though people are trying to make sense out of nonsense.
This fact leads to a more general question. Why are human beings in general creating and getting involved in all these complicated situations? What is driving humans to create problems for themselves and solve them and get stuck in this never ending chain?
Money - This is probably the answer for a vast majority but we see that beyond a certain level, it hardly matters. People sometimes take risks and are ready to lose money for something else.
Ego - This is probably one factor which overtakes money. People can go to any extent to maintain their self image. Probably this is also one of the factors driving the free software movement. But I feel this is again not the end. There is something else.
Something Else - I dont know what to call it. It involves the high level of passion exhibited by humans in whatever they are interested in. It is the infinite amount of creativity hiding inside every human, manifesting at various degrees. The push to do something new and special overflows from everyone given the conducive environment. When that push bursts out from within, neither money nor ego nor anything else can even come near it, let alone constrain it.
So, my conclusion is that we humans do what we are doing because we just can't help it. The knowledge/creativity/energy inside is trying to breakfree from all the limitations around. It is just the degree of manifestation that causes the differences between man and man.
Saturday, July 23, 2005
Communication with E.Ts - Yahoo!
I was trying out the interfacing of ruby with other languages like C/C++, Java etc and wanted an example. So, I downloaded the C API (libyahoo2) for yahoo messenger with the idea of writing a wrapper for it in ruby. But I somehow couldn't get it working even after trying for almost a week after which I was too frustrated and gave up that idea. In the process, I looked at the C source code and ...hey! I said. Why not...? yes! you guessed it right! It looked as though I could write it in ruby itself from scratch!
I started off soon. Now, Yahoo has its own packet strcture to manage communication between its client and server. Or, can you say its own Domain specific language in a very crude sense? whatever. I tried to build that packet structure but with no success. The yahoo server doesn't respond at all if the packet is not proper i.e. it doesn't say that I am wrong. This situation looked as though I was trying to communicate with an extra-terrestrial entity in its own language!
It was indeed a very tricky situation.
- You don't have tests to tell you what to expect out of your code.
- You don't know how near you are or how far you are to the solution until you actually get the right solution.
After that it was all normal. I generalised the packet generation and cleaned up my code. Right now I just have made of it a sort of API which can be used to write any sort of client. I have written a small CLI client with just the basic functionality of logging in and sending/receiving messages and typing notifications. Now I am thinking of writing a web-based client using ruby on rails and AJAX.
This was quite a useful experiment for me. It made me comfortable with ruby. I learnt a lot about how yahoo messenger works and in general how such asynchronous messaging works. I also recollected socket programming and multi-threaded programming and reading C code ;-).
Saturday, July 09, 2005
Stony Spells
"Take a true object-oriented language, such as Smalltalk. Drop the unfamiliar syntax and move to more conventional, file-based source code. Now add in a good measure of the flexibility and convenience of languages such as Python and Perl. You end up with Ruby. "
"Computational processes are abstract beings that inhabit computers. As they evolve, processes manipulate other abstract things called data. The evolution of a rocess is directed by a pattern of rules called a program. People create programs to direct processes. In effect, we conjure the spirits of the computer with our spells."
Monday, June 27, 2005
The Hard and the Powerful
I was a bit sceptical after seeing the extensive use of parenthesis and prefix notation ( One of the 'bad' things I've heard about lisp is this : Lots of Irritating Superfluous Parentheses). I almost felt that I was wasting my time on a complicated obsolete language. But I'm feeling a lot better now. I guess its just a matter of geting accustomed to it.
And maybe one more thing I miss is a good IDE with all the features like autocomplete, refactoring, etc. But that's not a fault of the language. Probably I have not come across one yet. However, thats not going to stop me from continuing with my Lisping.
One thing is for sure: Lisp definitely IS a powerful programming language.
Found this quote interesting:
"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."
- Eric Raymond, "How to Become a Hacker"
Saturday, June 25, 2005
The First Link
I am currently reading a book on Socrates, and he was speaking about the chain of thoughts as a chain which binds/constrains the power of expression in men. Maybe thats one of the reason for the title of my blog.