The Eternal Truth...

There are only 3 ways to write a blog... The Right Way, The Wrong Way and MY Way :-)

Programming Myself....

If you want something you never had, you must do something you never have done!!! - That's meee!!! can't be better:-)

Code coverage - Dead code

A nice read for those interested in dead  code analysis while doing code coverage

Dead Code is a term that means more than just a block of code with no possible entry points. It's been used to describe code that's been commented out or exists in files but not being built.  Also in some cases, it's been inappropriately used to describe code that is very difficult to reach.

The following 3 categories are meant to clarify the different types of "Dead Code" and recommendations on what to do for each.

Unused Code:

Orphaned code that lingers in the build but has no possible customer usage scenarios. This is more like the classical “Dead Code” definition; code blocks with no possible entry points.

Example:

· Class that never gets instantiated anywhere.

· Function that is never used in any other code.

Risk:

· Likely untested

· Likely un-analyzed by various runtime tools

· Potentially wasted space (media, ROM images, etc. if not optimized out).

· Security exposure.

Unused code is most likely optimized out, but in the cases where it makes it into the binary, it should be considered for removal.

Unreachable Code:

Code that is unexecuted due to logic that does not currently evaluate to allow execution (ex. relies on config/environmental scenarios that do not exist).

Example:

· Blocks of code that are logically unreachable: if (some_condition) { ...code....}, where some_condition doesn’t exist as TRUE in the world today.

· Blocks of code to handle non-existent hardware:

· Exception handler code that may impossible to trigger.

Risk:

· Likely untested, and can be awakened if config/environment comes into existence (most serious for already shipped code).

· Likely un-analyzed by various tools

· Wasted space (media, ROM images, etc.)

· Security exposure.

Unreachable code may also be optimized out (like in the cases of if (0) {...}), but for other code in this category that makes it into the binary, it may require core code changes to enable test cases, like interface hooks or some other type of testing approach (like fault injection).

The most serious code in this category is code that could become active post RTM when the world changes in a way that causes it to be executed.

Boneyard Code:

Code that is kept around for either posterity, tradition, fear of unknown (like if confronted with “let’s get rid of if”), or just plain laziness.

Example:

· Code that is commented out

· Code in files that are not part of compilation (i.e. in tree, but not in sources)

Risk:

· Untested

· Un-analyzed by various static analysis tools

· May not go through security review

· If enabled/re-activated at some future date, may introduce anachronistic code

· Security exposure.

Boneyard code is not as serious as it has no presence in shipping code and thus, by definition, poses no risk to our customers. Should be remove during something like a MQ timeframe or some other "Codebase Clean-up" effort.

Confused

 

Yeah, the frustration is creeping up as we are still unable to find a suitable name for our daughter. The more I Google , the more i get mad. I am gonna stop this and let wifey take control over small things like this. But i made sure that i would definitely have a say in bigger matter like

1. When should India declare war on Pakistan

2. What should be the world's stance on terrorism

3. Should Ganguly be selected for the Ind - Aus series

4. Did Bank of America make the right move by acquiring Merrill Lynch

5. What should be India's GDP in the next 5 years

6. Measures for winning more gold medal's in next Olympics

Wife, you heard me right. I have bigger problems on my hand. So please get a good name for our Daughter :-) Love ya both :-)

Kannada Barutha?

“Kannada Barutha??”, ah! I am sure most of you in Bangalore would have heard this, but what is “kannada barutha?” here it goes. Bangalore the IT capital of India , the silicon city and now a Metro city opened its gates to almost all kinds of people. Very evidently the recent poll census proved that there are only 47% of original inhabitants in Bangalore/bengaluru. The life style of the city has seen a gradual change with Pizza Corners replacing MTR’s, classy eat out’s replacing “Vidyarthi Bhavans” and flashy pub’s replacing all our “Mahalakshmi wine shops”.

“Change is inevitable” from the days of BEML, HAL and BHEL to INFOSYS, WIPRO; Bangalore has a new look now on the world map. Gone are the days where a typical Sunday for any bangalorean was a nice romantic walk on the pavements of “LALBAGH...”, “rave idli and coffee..” at the nearest yet old looking MTR and a wonderful Annavra film either at Santosh or central ‘talkies’. Today’s Bangalore is deluged in traffic, stress and pressure, Saturday nights without beer is desolate and a Sunday without a visit to either a nearest spa or health clinic is schlocky!! The gandhibazar’s are now AC cooled super markets, majestic is now replaced by ultra modern and diversified Brigade road, sri Cauvery coffee joint is now Coffee days.. and “Bhagyalakshmi coffee adda.. is now barista. With globalization and more retail market the city will definitely see more forceful changes.

Have all these changed our language? Kannada the local language of Bangalore is supposed to be one of the most meaningful language, it also has an unique script as compared to its other counterparts; but how many percentage of people really use Kannada in Bangalore now? The figures are staggering, only 37% of people speak kannada in the state’s capital, for rest it is only “Kannada barutha?”

Any normal guy starts with this sentence “Kannada barutha?” while talking to other person, people confirm before they speak the language. You want to ask an address in Bangalore ? Or reply to a question then English is the most preferred language other than Hindi. It’s a famous fact that two kannidagas in an IT company always talk in a neutral language!! even the vendors and shop keepers are channeled with this new wave, the moment when you step in any shop in Bangalore , you are always asked “Kannada barutha?” or the entire conversation takes place in non kannada languages. People have lost the confidence of speaking in the local language and more over speaking Kannada on the streets of “M.G road “or “kormangala” is substandard.

Shopping malls in the city have been completely banned from using Kannada, not a forced one but definitely an adapted one. One has to confirm that the other person knows the language before he starts using any language. “ondu glass beer” is a insult when it comes to any decorous pub in Bangalore .  “Swalpa menu card kodthira..??” has been replaced by “Can I have the menu card pls…?”

Just to hit some facts, Marathi is still the largest and common speaking language in Mumbai even though Mumbai has the highest no of inhabitants. Telgue is a practiced ritual in yet another IT HUB Hyderabad . When it comes to Tamil nadu, beware you can be alive either if you are a fan of rajnikanth or you know Tamil. Malayalam runs in the blood of every mallu be it Kuwait , Dubai or any hospital; but when it comes to kannada it is always “kannada barutha?” and next is “namaskara.” 

I am not a Kannada activist neither I run any Kannada supporting organization, I am just a plebeian who just love the language. Globalization is the trend and modernization is the mantra but at the cost the language? Sounds no logic.. is speaking kannada down market? The answer has to be found within oneself. Next time when you hear “kannada barutha?” you just remember that “kannada runs in your blood..”

How true!!!

Mother

No words to describe :-)  

mother

Simple yet powerful

If GOD is great, MOTHER is the greatest of all!!!!

Engineer's Day

“An Engineer’s first problem in any design situation is to discover what the problem really is.”

Engineering is The creative application of scientific principles to design or develop structures, machines, apparatus, or manufacturing processes, or works utilizing them singly or in combination; or to construct or operate the same with full cognizance of their design; or to forecast their behavior under specific operating conditions; all as respects an intended function, economics of operation and safety to life and property.

I take the vision which comes from dreams
and apply the magic of science and mathematics,
adding the heritage of my profession
and my knowledge of nature's materials
to create a design.
I organize the efforts and skills of my fellow workers
employing the capital of the thrifty
and the products of many industries,
and together we work toward our goal
undaunted by hazards and obstacles.
And when we have completed our task
all can see
that the dreams and plans have materialized
for the comfort and welfare of all.
I am an Engineer
I serve mankind
by making dreams come true.

- Sir M Visveswaraiah