Monthly Archives: November 2010

Thought of the day!

A Typical software development lifecycle has following phases- ordered by timeline

Requirement gathering
Design
Build
Demo
Testing
Fix issues
Deploy
Document
Maintenance

The golden rule is- The more time you spend at the top, the less you have to spend towards bottom.

So obvious, but we ignore it often.

Blogging- is beautiful

Ever noticed the ‘Next Blog’ button blogs hosted on blogspot. I was reading a friend’s blog and saw this next blog link, I mean, it must have always been there, but today I thought of giving it a shot. It started pouring random blogs, from people far-far away, never seen or heard of, sharing their thoughts, pics, news. Sharing there Christmas stories from last year (it was good to see that I am not the only one not posting to blog regularly 🙂 ), writing about there first day at college, the countries they are visiting, blogs dedicated to favorite shows and bands, computer games, technologies, plus a lot of random information. And then it started showing blogs of different languages so I lost interest. But it was interesting to see so many people sharing their thoughts through blogs.

Call by Reference in Java

Does Java pass object by value or by reference? Answer is a bit complex- it passes reference of object by value. Confused? Here is an example which will explain


public class test {

int a;

public static void alter(test obj)
{
//setting value of variable a.
obj.a=10;
//creating a temp object and assigning to main object
test temp=new test();
temp.a=15;
obj=temp;
}

public static void main(String s[])
{
try
{
test obj=new test();
obj.a=5;
//shows 5
System.out.println("Before call obj.a:"+obj.a);
alter(obj);
//shows 10 not 15
System.out.println("After call obj.a:"+obj.a);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}

Have you paid a bribe?

Recently came to know about ‘I paid a bribe‘ initiative form a Bangalore based NGO Janaagrah. Here you can report incidents where you had to pay a bribe and blow the whistle. I like the idea of reporting the incidents where you actually did not have to pay the bribe. So these guys are not only pointing fingers but also appreciating the individuals/ offices which say no to bribe and do their jobs honestly.

I am not sure if this will help actually solving the problem, but it is definitely a good first step for a country like ours where corruption has become a part of life.