Reality is a perception. Perceptions are not always based on facts, and are strongly influenced by illusions. Inquisitiveness is hence indispensable
Tuesday, October 30, 2007
Creative thinkers and Day dreamers
So the next time a child asks why he doesnt' have a moustache or where babies come from. Try to be creative enough to answer. Afterall child is the father of man.
Try googling for Gordian Knot, Egg of Columbus for more insights. The structure of Benzene as proposed by kekulle is another outstanding example.
Tuesday, October 23, 2007
'Memory'able Dilema
Should I opt for an 4 Gb flash drive or a 160 Gb passport hdd or a 500 Gb hdd. Give me the wisdom and guidance.
P.s: At the same time have a look at the Canon S5IS and Sony DSC-H9, so that you can let me make a decison.
Static imports
Himanshu was speaking of static imports in Jdk 5. Not surprisingly, I had something to learn over here too. Jdk 5 has come up with a feature for importing static variables; the fact that the same is applicable to methods and object references was news for me. I never thought of it before. What are the implications? Well like every feature and tool this adds a new destructive angle to the object oriented paradigm. It is better not to teach static imports to beginners. (Hey this is my blog.. don’t' contest).
With access specifiers of type 'public final static' there is no problem at all. Essentially making imported entities read only. But if we have a static object reference or method, the object oriented ness is lost. The static methods themselves are stateless. The seemingly non-object oriented way of accessing methods and references is what concerns me. The static methods themselves are stateless. We have discussed their usage in a earlier blog. The static references and methods are more of a concern to me.
These are most often seen in large scale programming applications. To start of 'Singleton' pattern is one of the most popular patterns built around static reference concept. 'Factory' pattern is another example of using static methods. The fact that
, some crazy guy wants to increase performance sends jitters.(by changing the access specifier to public, use static imports and invoke the functionality, and thus save a 'precious' method call). Do we break the paradigm for the sake of small performance gains?
All said, this adds more emphasis on code reviews and another aspect to the taken care of when carrying out code reviews.
Popular Posts
-
I recently had to come with this data-structure, later I found that google collections has a MapMaker which essentially does the same. Post...
-
This is the way I like to handle events. Note the ease with which the MessageSenders and MessageListeners can be "weaved" using ao...
-
There are times when we face the need to marshall and unmarshall java objects. What better than XML for this! Most programmers can write the...
-
Bananas for the code monkey It is always a good idea to prevent users from doing unwarranted things. Thats the whole idea of client side val...
-
Event bus is a rather simple notion, that is of great aid. Think of a telephone network; to communicate between two ends, one would require ...
Labels
- Programing (13)
- monologues (8)
- Java (7)
- experiences (7)
- ideas (2)
- java script (2)
- CSS (1)
- GXT (1)
- My First Post (1)
- Politics (1)
- movies (1)
About Me
- Swaroop
- Well for a start, I dont' want to!. Yes I am reclusive, no I am not secretive; Candid? Yes; Aspergers? No :). My friends call me an enthusiast, my boss calls me purist, I call myself an explorer, to summarise; just an inquisitive child who didnt'learn to take things for granted. For the sake of living, I work as a S/W engineer. If you dont' know what it means, turn back right now.