Welcome to MSDN Blogs Sign in | Join | Help

February 2006 - Posts

What's in a name

The other day I went out to dinner to Fareast with my wife and daughter. On the way out I met a group of people who had come down from USA. They had their 8-month old daughter with them. In the casual chat that followed one of them asked my daughter's
Posted by abhinaba | 5 Comments
Filed under:

Virtual method calls from constructors

C++ and C# varies considerably in how virtual method calls from constructors work. I feel that the approach taken by C++ is significantly better. Let's consider the following code in C++. #include <iostream> using namespace std; class Base { public:
Posted by abhinaba | 9 Comments
Filed under:

Code Generation in multiple languages

I'm currently working on a personal project that needs to spit out code after parsing some XML file. I had previously used the .NET frameworks CodeDom to do on the fly compilation and hence tried digging it up to see if I could use it for code generation.
Posted by abhinaba | 8 Comments
Filed under:

unsafe C# code

In all the code I wrote for VSTF I never used unsafe C# code. However, recently I was writing a tool which needed some unsafe code ( sizeof in particular). While writing the code I thought of some quick points to remember while using unsafe code. Do not
Posted by abhinaba | 5 Comments
Filed under:

optional arguments in C#

One of the things I missed a lot when I moved to C# is optional arguments. In C++ optional arguments are used a lot. Code as below is a common sight. void foo( int reqdParam, int optParam = 0 ) { // ... } foo(5); // gets compiled as foo(5,0) foo(5, 10);
Posted by abhinaba | 18 Comments
Filed under:

Scroll bars, elevators and the world of altered reality

In the initial years user interfaces derived heavily from real-life objects. Common examples include buttons, spin controls, dials, check-boxes and radio-buttons. Modern UI design relies on prior Computer exposure of general public and controls are now
Posted by abhinaba | 6 Comments
Filed under:

Abstract base class over interface

Currently I'm reading the book Framework Design Guidelines . This is one of the best books I have read in some time. Most books that cover design in general are one-sided and high-lights the author's beliefs and convictions. However, this book is very
Posted by abhinaba | 10 Comments
Filed under:

localized C#

C# and .NET supports Unicode and it’s super-cool that you can use variables and literals in your own language and get it to build and run. I never tried that out until I read Brad Adams post. I wrote the following program in C# using Hindi to name variables
Posted by abhinaba | 19 Comments
Filed under:

I just hit a century

I was reading Mike Stall 's blog and he said that his last post was #200 . This got me thinking and I went to check my blog-stat. My blog admin page currently states Total Posts: 100 So this means I just hit a century. This is a cricket term and I intentionally
Posted by abhinaba | 4 Comments
Filed under:

C#: Writing extendable applications using on-the-fly compilation

Sometime back I had posted about writing applications that can load plugins using late binding . Users can drop assemblies in a specific folders which is scanned by an host application at startup. Using reflection the host can locate classes that implement
Posted by abhinaba | 10 Comments
Filed under:

Mysterious thing's I have eaten

Steve Yi has a interesting post about Mysterious things he has eaten . Since I am from India we are used to a lot of food that may be considered as Mysterious. I couldn't figure out why Kimchee made into his list. It's served in all oriental restaurant
Posted by abhinaba | 14 Comments
Filed under:
 
Page view tracker