Archive for August, 2009

Circular Dependency in projects

Sunday, August 30th, 2009

Have you come across a problem when one project A has a dependency on B, and the B has a dependency on A. This problem happens because of a poor design of the software. Here is some ways to overcome:

  1. Make one project as part of the other in a separate folder.
  2. Introduce a third project.
  3. Use interfaces.

SQL Joins

Saturday, August 29th, 2009

Inner Join:

Bring the common between two tables after executing the statement after the JOIN predicate.

Left and Outer Join:

Brings in the result of the inner join as well as the results from all the data from left or right table.

Datagrid

Thursday, August 27th, 2009

The datagrid is a very useful data binding control in asp.net. To populate a datagrid, populate a dataset with the help of a dataadapter. Assign the dataset to the datasource property of the datagrip. Then do the binding to populate the control.

string vs String in C#

Wednesday, August 26th, 2009

String is an internal .net type. It is known inside as System.String. It is like System.Int32. The string is a C# representation. Both are the same. The C# developers prefer to use string.

Thread Vs Process

Tuesday, August 25th, 2009

There are so many distinctions between Thread and Process. The process is an instance of the program containing its state, date and instructions. The communication between processes can be done through memory mapped objects, pipes, files etc… The thread is a unit in the process where it can share the same data in the process. The process control the threads.