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

Creative thinking or out of box thinking is normally encouraged in technical and artisitc streams, but discouraged in managerial discipline. http://en.wikipedia.org/wiki/Peter_Principle has a good explanation of this. Creative thinking helps individuals and organisations. People raise the bar even when the results end in a catastrophy. The gains at times may be paltry but the learning is invalueable. Coupled with some pedagogic skills such a learning becomes an asset in times to come. Unfortunately, creative thinking cannot be imbibed. It is inherently psychlogical. The inquisitive nature seen in children when groomed well forms the foundation for this.

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

Dear God, Father of all electronic, electrical, magnetic, optical, semiconductor appliances. Conserver of all software applications built around boolean and binary representation. Help me out of 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

Labels

About Me

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.