Thoughts on Objects
Amsterdam, The Netherlands
There seem to be two types of behaviour when it comes to using object oriented frameworks. Programmers and Designers generally tends to fall into two types of categories. There are the acquisitive programmers and then there are those existive programmers.The former tends to use an inordinate amounts of associations in their models (generally compositions) while the latter focuses on using inheritence to solve their programming problems. The question is not on of which is better as it is quite possible to solve a problem using either. Generally acquisitive systems are equivalent to existive models. But the question is why one would tend to sway more in one direction than the other.
For instance if a class say a Portfolio needs to hold and track a list of financial instruments, one could either model a class Portfolio and use an acquisitive relationship to say a Vector class to contain the instruments. Such a model would result in a class that exposes facilities to add , remove or ammend the objects contained in the vector. The resulting class could therfore contain at least three more methods that are more to do with manipulating the contents of the vector than actually related to the various business methods related to portfolio. On the other hand, one could model a portfolio as a subclass of say a Vector. The resulting classes would not require the methods related to the manipulation of the vectors contents as they are already contained in the Portfolio through its existive relationship. The additional methods that one could add to the class are purely related to the business methods required of the class. The existive solution seems more esthetic but generally such a solution is not used (atleast I have never come across such a solution) ,however such a solution would seem to violate the morphological relationships inherent in using existive relationship. After all, a portfolio is not a vector and the semantics that one associates with a vector seem out of place when they are regarded as intrinsic to the behaviour of a portfolio. Nevertheless, either of these solutions would work, the difference would be that in the case of the acquisitive relationship, the programmer would have to write more code than in useing the existive relationship.
Tuesday, July 17, 2001
Wednesday, May 02, 2001
Power with impunity
The Following is a post I made on CNN message board regarding Americas desire for a Missile Defence System
Makarov, "I hope there will be more dialogue and more sanity..."
The US has said it will have consultation with her allies, russia and china.
Bush has also siad "no treaty that prevents us from addressing today's threats, that prohibits us from pursuing promising technology to defend ourselves, our friends and our allies is in our interests or in the interests of world peace."
compared to 1972, today we have pakistand and india (and possibly israel) as nuke capable countries. india and pakistan are learning the virtues of MAD but it is not clear how proliferation is impacted. It is quite possible that nuke technology is seeping through to iran, possibly libya but these countries have more to worry about from israel than america. Just like military doctrine was never designed for a vietnam, it its nuclear doctrain is not designed for a limited nuclear strikes. American military doctrine is changing both in conventional terms and nuclear terms. It will use overwhelming force agains any threat to its national security, might even be prone to preemtiveness. Over the next 20 or so years we will see the full flowering of the Powell Doctrine. The test for this doctrine will come when at some point in the future the US will have to do to Russia over things like Chenchnya what it did to Serbia over kosovo. The role of World Policeman is not complete if US power cannot be projected at any point of the world with impunity, the NDM is the first step in that direction. 'As for consultation, they are just that, Let the new world order begin.
The Following is a post I made on CNN message board regarding Americas desire for a Missile Defence System
Makarov, "I hope there will be more dialogue and more sanity..."
The US has said it will have consultation with her allies, russia and china.
Bush has also siad "no treaty that prevents us from addressing today's threats, that prohibits us from pursuing promising technology to defend ourselves, our friends and our allies is in our interests or in the interests of world peace."
compared to 1972, today we have pakistand and india (and possibly israel) as nuke capable countries. india and pakistan are learning the virtues of MAD but it is not clear how proliferation is impacted. It is quite possible that nuke technology is seeping through to iran, possibly libya but these countries have more to worry about from israel than america. Just like military doctrine was never designed for a vietnam, it its nuclear doctrain is not designed for a limited nuclear strikes. American military doctrine is changing both in conventional terms and nuclear terms. It will use overwhelming force agains any threat to its national security, might even be prone to preemtiveness. Over the next 20 or so years we will see the full flowering of the Powell Doctrine. The test for this doctrine will come when at some point in the future the US will have to do to Russia over things like Chenchnya what it did to Serbia over kosovo. The role of World Policeman is not complete if US power cannot be projected at any point of the world with impunity, the NDM is the first step in that direction. 'As for consultation, they are just that, Let the new world order begin.
Sunday, April 22, 2001
Amsterdam
The Netherlands
why do we search ?
Life is all about searching and sorting, its true for machines and its true for men. We search all the time, for friends, for work, for laughs, for sex, for food, for life .. the search never ends. Sometimes we search for more than one thing and find it, then we have to sort. somethimes we have to search for many things but we dont have the time so we sort that which we have to search and then search for the most important. It is human to search. It is human it sort. All life and non-life searches and sorts. The question is not for what by why.
Why does he search or him? Why do you?
The Netherlands
why do we search ?
Life is all about searching and sorting, its true for machines and its true for men. We search all the time, for friends, for work, for laughs, for sex, for food, for life .. the search never ends. Sometimes we search for more than one thing and find it, then we have to sort. somethimes we have to search for many things but we dont have the time so we sort that which we have to search and then search for the most important. It is human to search. It is human it sort. All life and non-life searches and sorts. The question is not for what by why.
Why does he search or him? Why do you?
Amsterdam
The Netherlands
When the sheep die
What does it mean to be human? I tried to work it out the other way round, what would it mean when you are not human? I hvae seen sheep being led to their bloody deaths at the butchery. There was something human in the air. They knew they were going to die, most of them had a resigned look in their eyes, a few of them looked stark raving mad with fear and a small minority amongst them looked like they were resigned to their fates, knowing that death comes sooner or later to all. It was quite unverning for me at the abatoir. I had never been so close to death before. It took me back to the those grisslier times when humanity was being gassed at auschwitz and the other death camps. I imagined being there.. feeling the resignation, the fear and the indifference that i imagined the jews felt being there. I think what makes us human is the full realization of what it means to die, to die mean not to know.
Death is frightening to me because i dont know what lies beyond. My cousin consoled. He said, "heck why worry? If it works out after you die, you win, if it does not and you end up being molecules of dirt, you will never know .. you win again" I wonder if something in those sheeps felt along the same lines? But what would life be without death? When an individual dies and millions of us die every day, it hardly impinges on our humanity. But when millions of us are butchered, surely something in all of us dies, our humanity suffers. Am i not as guilty as those nazis because I am of the same species? Of the same humanity? Acts of genocide diminishes all of us, it makes us all murderers.
Yet I am still a meat eater ...
The Netherlands
When the sheep die
What does it mean to be human? I tried to work it out the other way round, what would it mean when you are not human? I hvae seen sheep being led to their bloody deaths at the butchery. There was something human in the air. They knew they were going to die, most of them had a resigned look in their eyes, a few of them looked stark raving mad with fear and a small minority amongst them looked like they were resigned to their fates, knowing that death comes sooner or later to all. It was quite unverning for me at the abatoir. I had never been so close to death before. It took me back to the those grisslier times when humanity was being gassed at auschwitz and the other death camps. I imagined being there.. feeling the resignation, the fear and the indifference that i imagined the jews felt being there. I think what makes us human is the full realization of what it means to die, to die mean not to know.
Death is frightening to me because i dont know what lies beyond. My cousin consoled. He said, "heck why worry? If it works out after you die, you win, if it does not and you end up being molecules of dirt, you will never know .. you win again" I wonder if something in those sheeps felt along the same lines? But what would life be without death? When an individual dies and millions of us die every day, it hardly impinges on our humanity. But when millions of us are butchered, surely something in all of us dies, our humanity suffers. Am i not as guilty as those nazis because I am of the same species? Of the same humanity? Acts of genocide diminishes all of us, it makes us all murderers.
Yet I am still a meat eater ...
Subscribe to:
Posts (Atom)