Archive | Microsoft .net and C# RSS feed for this section

Code version control using GIT extension

18 Oct

I was looking for simple source control / version control tool to install on my laptop where I have only 60 GB hard drive with 1GB Ram and intel Centrino 2 processer.
Then started looking for options and finally started digging into the GIT and I found it simple and free open source.
If you would like to integrate it.

here is what you need
using GIT extension.. Read More

Happy Coding!

-Satyadev Singh

Advertisements

C3 Programming..

18 Oct

C3 programming (Contract , Code, Close):

Most software projects fail because they don’t meet the business requirements, over budget and delayed delivery. If we are going to think why this is happening then we will come to know that, the main problem is miscommunication!.. which is very common mistake we used to do. This is comes in picture when business analysts are transfering the requirement to the software development team and once the S/w development team passing this requirement to the QA team.

so it’s like Business analysts understand the problem 100% but only communicated 90% to the software development team only communicated 80% to the QA.. 

To overcome this comminication issue C3 programming comes in picture because the primary goal of the C3 programming is better communication.

C3 programming addresses this issue by assiging responsibility to Software development team just like function call 

 

INPUT ————->OPERATIONS————-> RESULT

 

C3 PROGRAMMING ARCHITECTRE 

INPUT ————————–>OPERATIONS—————> RESULT

(Contract of expections by business)        (Coding )     (Expected Result)

 

C3 programming is a process of fostering better communication among these roles and can be implemented in any Software Development lifecycle  Model. It Added neccessary responsibility to Software development team to ensure that they understand the scope of business requirement.

Signing off for today..

Satyadev Singh

C# and Null

15 Aug

Hi Friends!

Can you please tell me what should be the output of the following c# code block.

public string testNull()
{

string name = null;

try
{

name = name + “Satyadev”;
Response.Write(name);
}
catch (Exception ex)
{
throw ex;
}
return name;
}

Will it throw an error or return “satyadev” ???

If you are thinking it will throw an ERROR then you are wrong… yes it will return “satyadev”.

you can try it yourself

Now you guys are thinking why I have asked this question to all of you, I am asking this because

while doing a code review one of my colleague pointed a method in which a developer wrote a similar kind of code and this becomes an issue… just because of everyone is thinking this code will throw an error.

So What is the moral of the story ?

Sinning Off …

Satyadev Singh