Carl Sagan’s book Cosmos explains a bit about how some people in the 15 & 1600s have spent a good deal of time trying to find out the truths about Earth’s position in the cosmos. Kepler is one of them who have contributed significantly to our current understanding with help of years of observation about the night sky and lots of mathematics. Kepler did not have enough resources to get hold of good telescopes so he had to rely on readings from people who had access to it. Tycho was one of the few who had access to good telescopes and made detailed observations. Kepler had a great interest in Tycho’s mars observation, Tycho was impressed by Kepler’s work still guarded all his data because of the work he put in. Kepler left Tycho after it was becoming increasingly difficult to get data from Tycho to test his theory and trouble to get into a formal agreement to work with each other.

Some time later Tycho’s unexpected demise landed Kepler the task of finishing what has been left by Tycho. Kepler began testing his theory of earth going through circular orbit around the Sun and backed that with the date of Tycho’s observation of Mars. At one point he observed that his theory fit perfectly fine except a couple of reading which were off by 8 minutes of arc in angular degree. 8 minutes of arc deviation in a 90 degree observation field is just 0.15% deviation.

Kepler not only had faith in Tycho’s observations but also had the courage to question his assumptions even though the deviation was only 0.15%. Kepler felt that his fascination with the circle was a delusion and he abandoned his circular orbit theory and went for other curvy shapes. Eventually when he came up with an elliptical orbit with Sun at one of its foci, all the data from the observation and theory matched perfectly fine. He could have easily patched up 0.15% deviation and closed his work, but the trust he had on his fellow researcher’s data and his perseverance to find the right brought in a reformation in astronomy. His laws of planetary motion still hold good.

Many at times in school I have succumbed to the temptations of approximating or convincing myself that others could be wrong and prematurely ended feeding my curious brain. This definitely has delayed many things which I could have understood better had I spent enough time on it. If Kepler could question 0.15% deviation and come up with a revolution, then we have ample opportunities to break paths every day.

Below is Kepler’s quote

Divine benevolence has bestowed the most diligent of observers, Tycho Brahe, from whose observations this eight-minute error of Ptolemy’s in regard to Mars is deduced, it is fitting that we accept with grateful minds this gift from God, and both acknowledge and build upon it. If I had believed that the we could ignore these eight minutes (0.15% deviation), I would have patched up my work accordingly. But, since it is not permissible to ignore, those eight minutes pointed the road to a complete reformation in astronomy.

More Kepler’s quotes here

Image: Idea go / FreeDigitalPhotos.net

Working with Java has been almost inevitable for me. Many clients who have their projects written in Java and in the near future not going in for any rewrite will stick with them. Several Java frameworks and libraries have made heavy lifting simple and made software development more predictable and easy to code.

Some frameworks mandate the use of getters and setters to work with Java beans which make the code look bloated. It was also pointless to get these getters and setters covered in tests and they end up showing as uncovered. We have to configure to avoid these methods from showing up in the coverage metrics. Also the presence of getters tempts a developer to make use of it as a backdoor and get some quick fix done.

Lombok came to the rescue, with simple annotations it inserts the necessary getters, setters, constructors, equals, hashcode. These methods are added at the compile time which make the code look clean on the editor. Eclipse and Idea have plugins to support injected methods (Though it would be great if we do not rely on hand written code to make use of these generated methods. We should leave them only for the consumption of frameworks or libraries which demand getters and setters).

The other problem I routinely faced was the frequency at which we handle and manipulate collections. LambdaJ provides a pseudo functional way to work with collections. It makes the code very terse and when used in combination with Lombok on domain objects, Java code looks super neat with few hand written necessary methods while all the boiler plating is left to the compiler.

Lombok and LamdbaJ together will make working with Java code more coder friendly.

In the movie Soldier, the soldiers are humans selected at birth and conditioned to obey orders and win battles. The antagonist comes up with genetically engineered super soldiers who are better in every single metric like long runs, fast climbs, weight lifting and many more. As a final test the protagonist is put up for a fight against a genetically engineered soldier, loses the combat. He is thrown away into another planet  along with the trash and two others who died in the combat against the mutant soldiers. He ends up in a new planet and gets taken care by the people there. The antagonist tests the mutants’ battle skills at the new planet, which brings them to fight against the hero who kills them all in a real battle field scenario and takes over the ship.

Metrics of software development and developers if not used at the right level, will start giving us an illusion on control. They are more like a guideline which can hint at the presence of a problem rather than an assertion of well being. In agile projects velocity is one metric which is very visible to the client, what was once to help in planning becomes an important metric in presentations; so are cycle times, bugs per story, lines of code etc. The illusion created by strictly following all metrics taking actions based only on that will lead to two problems.

  • It will encourage work to be based on the metrics, like legally right but wrong in principle.
  • It will shift focus away from mainstream work resulting in loss/delay of work.
As far as I have observed, when metrics are limited as tools for diagnoses and planning they have helped a lot improve the progress by allowing the individuals to reflect and retrospect; take small corrective steps. When a single person takes a strong corrective actions on the course of the project based on the metrics then success was a stretch goal.

Image: Michelle Meiklejohn / FreeDigitalPhotos.net