Gururaj’s Rumination

Rumination – The word says it all…

Archive for the ‘Technology’ Category

Enum.IsDefined and Performance issue

with 2 comments

Till today I’d never used Enum.IsDefined method to verify whether a value is defined in a given Enum. My first encounter with Enum.IsDefined happened a day or two before when I stumbled on this while analyzing existing code for performance loopholes. I found a method which happened to verify whether a value is defined in the given Enum and flag if it’s not. I’d never imagined that Enum.IsDefined can be so expensive that the performance of the component will go down exponentially based on the volume of the data it has to process. To understand better why it’s expensive lets first understand Enum.

Enum is a ValueType and every Enum derives implicitly from System.Enum and this in turn derives from ValueType. To understand in more detail here is the extracted description from the C# Language Specification

11.1.9 Enumeration types

An enumeration type is a distinct type with named constants. Every enumeration type has an underlying type, which shall be byte, sbyte, short, ushort, int, uint, long or ulong. Enumeration types are defined through enumeration declarations (§21.1). The direct base type of every enumeration type is the class System.Enum. The direct base class of System.Enum is System.ValueType.

Given the definition, the below code snippet declares a ‘Status’ enum type. And from definition the underlying type of ‘Status’ type will be Int32. This means that ‘InProgress’ is named a constant for value 0 and ‘Success’ is named constant for value 1 followed by ‘Failed’ as 2. The point to be noted here is that the first named constant always starts with 0 and the subsequent constants have incremental value.

                enum Status

Read the rest of this entry »


Written by Gururaj

December 24, 2008 at 9:57 pm

Posted in Technology

Tagged with , ,

Now on LinkedIn

leave a comment »

I finally created an account on LinkedIn only after seeing a WordPress post/update about WP application support on LinkedIn. This was enough for me to realize how important it is to have a LinkedIn profile. I’d come across LinkedIn in the past too but I ignored it thinking it’s of no use but now I realize it’s more important to have a LinkedIn profile than Orkut profile for any professional contacts.

On one side Orkut is to socialize with people or friends, on the other side LinkedIn is for professional contacts. In just one day I’m able to explore many things and also able to see how helpful it can be in professional growth.

This is going to be the first post which will appear on my LinkedIn profile. This also means that I’ll have to keep writing on topics which can also appear on LinkedIn profile 🙂

See you on LinkedIn then…

Written by Gururaj

October 31, 2008 at 11:03 pm

Can I insure my Job?

with 10 comments

While at work I prefer listening to Radio instead of using Music Player like iPod. The other day on Radio (Radio Mirchi 98.3 FM) there was this interview with one of leading Insurance Company Head- Arg! I don’t have much details on the interview. The point is that this executive was talking about insurance and how these days people are insuring different non-tangible substances even including the Marriage Reception to hedge if it rains or people don’t turn up to the reception as in expected numbers.

Following my previous post on Job Risk in the gloomy market what struck is whether on the sames lines as marriages can we insure our job and get compensated only when we’re fired? On the contrary will the Insurance company provide such a policy to salaried individuals?

I know in reality this is remote possibility but in the virtual world say it’s exists. Given such a policy exists, how will an Insurance company verify whether the policy holder indeed got the pink slip. One possibility is that if the Employer hands the relieving letter stating that the Employee in question is being shown the door. Terrific, that’s a legitimate way. But, again what negative impact will it have on the Employee’s career. Will he be able to easily get new job given that he has been fired from his current job; Read the rest of this entry »

Written by Gururaj

September 18, 2008 at 11:01 pm

If not IT what else?

with 7 comments

Yesterday BofA (Bank of America) bought Merrill Lynch giving 0.85 BofA share for every Merrill Share. Also, Lehman Brothers filed Chapter 11 – Bankruptcy. That’s not the end of the story, AIG – The largest insurance company in the US is also on the verge. It has requested the Fed for emergency funds.

While this is what is happening in the US, I learnt that Satyam Computers, one of India’s leading software services company, is about to fire 4500 of its employees. It says that it’s their annual drill in which they show the doors to those employees whose performance is not up to the mark. It’s not just Satyam many IT firms are following suite.

I’m basically a Software Developer by profession working out of Bengaluru (or more commonly called as Bangalore). The common perception is that Software professionals have ‘The Midas Touch’, whatever we touch will turn into gold. Well that may be the past, these days most of the software guys are in the line of fire. Nobody knows when they’ll get the pink slip.

Because of the US market volatility due to Credit Crisis and Dollar depreciation the IT firms are making fewer profits and also the US companies have brought down the project outsourcing to some extent. That’s not all. The US Republic and Democratic parties are now talking about putting tough laws against outsourcing in their election campaign for the Presidential post. This means less IT work coming to India. The UK Govt. is also talking about issuing less Read the rest of this entry »

Written by Gururaj

September 16, 2008 at 5:03 pm

Answers anywhere everywhere

with one comment

I generally say that I’m the best critic for myself, and this means I always strive to improve myself based on my own personal observation be it How I behave with others, How I dress, How I think differently from others, How I learn the latest technology, How I build my technical skills, or even How I struggle to improve my English and also word power – in simple words it circumvents both my personal and professional life.

I always wished I had a handheld device, like my Cell Phone installed with dictionary application, specifically which has dictionary and that’s also not a Cell Phone to help me quickly do a word look-up while I’m away from reading table like while I’m reading a newspaper, or my favorite novel, or even a technical book on .NET/C#. This even actually made me think many times of designing my own hardware architecture which can support such a need (though I’m not from circuit’s background). If I’d succeeded in such a venture that would have definitely become a hit in the students circle as they too need such a device which will be very handy for them for preparing for GMAT, CAT or for any higher education which requires good vocab. Why I fancy for such device is because I want to learn new words, their synonyms and antonyms.

I once stumbled on this utility, 1-Click Answers, published by and I fell in love with this utility instantaneously. Yes! This is one of the kind of utility I was always been looking for which is at least very handy while on Computer.

1-Click Answers doesn’t comes with loads of options or features but whatever it has got is beyond par with any online dictionary versions. Firstly, 1-Click Answers always sits in the Read the rest of this entry »

Written by Gururaj

August 28, 2008 at 12:04 am

iPhone: I’m coming to India in 3G avatar today

with 3 comments

Apple iPHone 3G

Apple iPHone 3G

The wait for all the gizmo freaks is going to come to an end today midnight, No I’m not talking about RGV’s new movie release Phoonk. I’m talking about the much awaited gizmo – Apple’s iPhone. Yes. it’s going to be launched in India for the first time today midnight. India is going to see the first official iPhone and that too in it’s 3G avatar. Isn’t that great?

The iPhone being launched in India is 3GB enabled and comes in two bundles, 8GB and 16GB. Vodafone has announced that it will be launching the Indian versions at Read the rest of this entry »

Written by Gururaj

August 21, 2008 at 10:40 am

Down the memory lane…

with 2 comments

Today the Aug 12th, 2008 is a significant day in my life. I have had graduated in B.E. (Computer Science) in December 2001 from SLN College of Engineering, Raichur (Karnataka). I think I graduated in a not so good year in the IT industry. The US has been going through a rough phase, the IT industry too had it affect – it was the recession year in the US. The off campus job opportunities were very less. I came to Bangalore (now Bengaluru also known as Silicon Valley of India) on 25th Jan 2002 to take a written test conducted by HAL, Bangalore on 27th Jan 2002. That’s the second time I’d come to Bangalore and before that was once for my final year project consultation.

After taking up the written test and not getting through it became my daily routine to visit every Software firm in-person and drop-in my CV for their reference or for the vacant developer position, if any. My friends and I use to plan Read the rest of this entry »

Written by Gururaj

August 12, 2008 at 10:00 am

Posted in Personal, Technology

Tagged with , ,