Digital World

15 May, 2005

C# language ref, out parameters debate

out parameters, Ref parameters basically serve the same purpose of returning values from the functions. But out parameters need not be initialized to me a true nomenclature.But ref parameters on the other hand needs to be initialized.
In true sense ref parameters are even more handy at times than the out parameters because ref parameters acts as an in,out parameter. There is wrong conception that the ref parameters has the overhead of initializing.
Illustration I have sales tax calculator for a commodity bought at the price Rs.100.04
main(){
double price = 100.04;
double ultimateprice = 0;
double tax = 0;
tax = calculatetax(price)
calculatesurcharge(tax);
ultimateprice = price + tax;
}
calculatesurcharge(ref Ultimatetax);
No argument on which is better, to me use ref and out parameters at the right place

13 May, 2005

The pleasure of handling a bi-cycle...

Probably the biggest bi-cycle i can imagine. The proud team claims that this machine is fuel efficient than your car and this design can sustain the in market for the next twenty years. Jacques Rosay, i would say "The prestigious cyclist" of A380.

12 May, 2005

Welcome Note

Seems like my first step ...

Always an introvert by nature with valuable thoughts dug deep and now decided to share the same with the world. Basically this blog is all about computers and my other interests like soccer, music,movies, books , shopping, photographs, people, incidents ...
About my profession, a software developer from an Indian based company with 5 years of solid experience in Microsoft technologies. Started with COM and has grown with Microsoft's every visual studio upgrades.

Comments do encourage blogs...