Wednesday, November 28, 2012

What is Test Driven Development?

The developer develops the bare minimum functionality for the entire task without any unit testing and delivers it to the Test team.

The Test team tests the functionality and files bugs saying either the functionality is missing or not working for mainline scenarios.

For functionality missing bugs, the developer implements just the mainline scenario, and for the main line scenario not working bugs, he makes it work just for the mainline scenario and delivers the code.

The test team tests the functionality again, and files bugs saying, either the mainline scenarios are not working for the previously missing functionality or other scenarios are not working.

Developer fixes those again, and delivers it.

Then the test team finds few more scenarios and few corner cases and files bugs on those.

This cycle is repeated, till the code satisfies all the requirements.

This is called Test Driven Development.

The advantage in this method is, the developer does not need to give accurate estimates to the manager, in terms of no.of tasks or duration of each task. We can finish the project, whenever the manager wants. [i.e., we say that, we are done with the tasks on the deadline given by the manager.]

The only disadvantage is, the testers will lose interest in software and/or their life.

[If you really don't know what is test driven development, and if you follow this, then the testers' life becomes miserable. In real test driven development, we have to replace test team with automated testcases.]


With sympathy on all the testers who are testing my code.

Monday, November 19, 2012

Restrictions on Politicians Contesting in the Elections

We should not allow someone resigning and contesting again. It is a waste of money.

We should put minimum educational qualification for the candidates.

We should not allow criminals in the elections.

We should have Retirement Age in politics.

We should have right to recall the elected representatives.

The contestant should start as a surpanch/councillor/corporator, and after serving for one full term, they should contest as MLA, and after serving for one full term only, they should contest for MP.


Why are you electing them? Don't vote for those who are not qualified according to your rules.

I do not support any kind of restriction in elections, whether it is by caste, sex, criminal record or anything. People should have complete freedom on whom to elect.

Let's suppose, there are two contestants in the elections. First person has developed the city with Rs.10 crore and did not take even single rupee as bribe. Second person has developed the city with Rs.100 crore, but took Rs.10 crore bribe.

In this case, many people would say that, the second person should not be allowed to contest. But, I want the second person to contest, and I would vote for the second person only, and I will not vote for the first person. If the majority of the people think that, second person is bad, let them not vote for the second person. But, let the people decide. Do not put any restriction on that.

Saturday, November 10, 2012

Movies on Impractical Politics

Few years back, people used to suggest me to watch few movies based on the Hindu scriptures like Mahabharath, Ramayan and Bhagavatham. After watching few movies of that type, I lost interest in watching movies based on the scriptures. The reason was, almost all the directors changed the story for their own reasons. Because of the distortion in the story, I lost interest in watching those movies.

Nowadays, I am getting recommendations to watch movies on politics. After watching those, I am getting the same feeling. I am losing interest in watching movies on politics, because most of the movies are not practical. They want to show something interesting/heroic to the audience, and not the actual way to solve the problem.

Let's take an example of the movie, Leader.

After the hero becomes Chief Minister, he had to release a criminal for him to continue as C.M. The Hero's mother is disappointed that, he released a criminal to keep his C.M.'s post. The events that are followed by this are, Hero's mother dies, Hero arrests the criminal and seizes the black money of all the elected representatives which is around Rs.1,00,000,00,00,000 and he calls for the elections.

If the same thing happens in the real world, the state would NOT be in a better state by what the hero did in this movie.

If a person becomes a C.M. by anyway other than his/her own mass power, then they would definitely get pressure from others in doing some unethical/illegal activities. If he/she does not do that, then very soon he/she would lose his/her post. The scale of unethical/illegal activities that he/she needs to support is indirectly proportional to his/her own mass power.

If the hero loses his post, then he cannot do anything for the society, and a crooked person takes the power and destroys the state/country. If he stays back in the post, he would have to allow few illegal things, but, he can do something to the society at his capacity. More on this at Even Good People Are Becoming Bad After Entering Politics.

Since, it is a movie, he wins and becomes C.M., But, in real world that won't happen. As in the movie, even if the government collects 1 Lakh Crore rupees of black money, still, it would be used by the same politicians, and they know very well on how to get that money into their pockets.

In most of the movies based on politics, they project, collecting black money, or giving freebies to the poor people as good. But, they never stress the point that, making people self-dependent is the first important thing.

Most of the movies stress the point that, the politicians are bad. But, hardly any movie stresses the point that, the people are electing the bad people. So, it is people who have to change, and not the politicians.

There is only one exception to this in Telugu Cinema. There is only one director/writer in Telugu cinema, who can make real political movies to inspire people. He is Posani Krishna Murali, and this post is not applicable to him. He made real political movies like, Raja Vaari Chepala Cheruvu, Operation Duryodhana etc. Unfortunately, normal people cannot accept the truth, if it is told bluntly. That's why, his movies are not so popular.

Thursday, November 01, 2012

How to Get an Appointment with that Big Personality

The following are the general categories of people who ask for appointment of big personalities in the name of helping the big personality (Other than those who really help the big personality).


Mr.X is not doing correctly. I would like to give suggestions to him and would like to tell what he should do and what he should not do. For that, I need an appointment.

Mr.X is handling things only at national level. He is not worried about the things that are happening in a village. I must bring it to the notice of him. For that, I need an appointment.

I need appointment with Mr.X, so that, I can take suggestions from him in proceeding the activities in my village.


Mr.X has been in this field, even before many were born. He has lot of knowledge, and does not need any suggestions from anyone else. It is not worth of his time to spend time on smaller issues by ignoring bigger issues.

If you really want to help the big personality, the best thing that you can do is, not wasting his time.