Sunday, February 04, 2007
So where is the money (In India)?
Top 1%: 16% of wealth Top 5%: 38% of wealth Top 10%: 53% of wealth Bottom 80%: 30% of wealth Bottom 50%: 8% of wealth Bottom 20%: 1% of wealth Bottom 10% 0.2% of wealth | |
| *Courtesy BBC | |
Posted by
Ashish
at
5:02 AM
0
comments
Thursday, February 01, 2007
Iced Cava for you programmers
Hey! You Java programmers.. you know Cafe Babe don't you? Thats the first string of hexadecimal numbers 0xCAFEBABE to identify valid JVM files. But as you all know the Java programming language is all about coffee. In many languages one term for Coffee is Cava or Kahva. The concept and the words are known for many years now, but I am rearranging it and tossing a new word: ICeD CaVA - means Iced coffee. This word has the factors to measure the quality of your Java code. Let me explain it how:
I - Instability
Ce - Efferent Coupling
D - Distance from the main sequence
Ca - Afferent Coupling
V - Volatility
A - Abstractness
What does these mean though?
Instability: Is the ratio of Ce/(Ce + Ca). The metric is an indicator of the package resilience to change. I = 0 means a completely stable package. Many of the SDK packages will have its' I = 0. If the changes in other packages does not affect this package then its value is zero.
Efferent Coupling: Is the number of other packages that the classes in this package depends on. Efferent coupling is an indicator of how independent the package is.
Distance from the Main Sequence: The 'D' factor is a metric of the package's balance between the stability and abstractness. Ideal packages are either completely abstract and stable (x = 0, y = 1) or completely concrete and instable (x = 1, y = 0).
Afferent Coupling: Its the number of other packages that depend on the classes in your package. This is a metric indicating the package's responsibility.
Volatility: Is your package going to change or not? java.lang has a V = 0, means creating dependencies on this package is not a cause of concern. If you are starting to build a package, the initial value of V is equal to 1.
Abstractness: This is the ratio of the number of abstract classes and the interfaces to the total number of classes in your package. If A = 0 then its completely a concrete package. A = 1 indicates a completely abstract package.
So here you go, you have a completely freshly brewed cold coffee. Oops! the Iced Cava.
Posted by
Ashish
at
2:07 PM
0
comments
Labels: java, simple little things of programming
Tuesday, January 30, 2007
Monday, January 29, 2007
If I was granted a wish to be in bollywood
Then I would have asked for:
1. The confidence of Amitabh
2. Eyes of Shahrukh
3. Innocence of Amir
4. Bindas of Sanju
5. Voice of Nasir
6. Emotions of Pankaj Kapur
7. Height of John
8. Body of Hrithik
9. Charm of Salman and,
10. Instincts of Nana.
Hmm! %$*^@!!)($#@...
Nah! I would look like a Orangutan then.. I am fine myself.
Posted by
Ashish
at
3:31 PM
0
comments
Ford, what you got?
Ford just posted a huge loss last quarter. I don't own one but this was the only non-Japanese car I test drove when I was looking for one. Today its cars face very stiff competition from other manufacturers. Jag is going no where, Lincoln has the same fate, Camry ate away Taurus and Civic and Corollas are not letting Focus go anywhere. Be realistic and look what you got? You simply got only two models: F-150 and Mustang - the best in their segments. Ford can bounce back if only they consolidate their production and concentrate on the leading models. Walk down Jack Welsch's path - If you are not number one or two just close or sell it.
Posted by
Ashish
at
10:29 AM
0
comments
Saturday, January 27, 2007
Life of Pi
A very good book...
...Pi's father decides to relocate to Canada, sells his zoo and boards the cargo ship. In the midst of the journey the ship sinks and Pi shares a lifeboat with an injured Zebra, an Orangutan a Hyena and a Royal Bengal Tiger. Pi did not know where the tiger was so he concentrates on Hyena. Hyena begins to feed on the injured Zebra and kills the Orangutan after the Zebra dies. Pi thinks he is the next when he spots the Tiger. Tiger was hungry and kills Hyena to eat. Tiger does not immediately attacks Pi. Pi avoids direct confrontation with the Tiger and feeds him with his catch of fish thinking a healthy and fed tiger won't be a threat. Due to malnutrition Pi falls sick. He could not catch the fish anymore. He meets another castaway who jumps on Pi's boat with an intent to kill him. Tiger kills the intruder for food. Pi then washes ashore to a carnivorous island...
Posted by
Ashish
at
8:31 AM
0
comments

