What is Defensive programming?

  • Thread starter Thread starter Sayyid Ayoub kokabi
  • Start date Start date
S

Sayyid Ayoub kokabi

Guest
Hello,

I read a lot about defensive programming and i know somewhat about it but really i not see a good example code in C# to get it right. please write and easy example of defensive programming in c# and answer this question.

1- what is difference between defensive programming and programming by contract?
2- what should/can i use it?
3- what is advantage and disadvantage of defensive programming?
4- does we can say one is better than other?
5- and other thing that you may want to say.

Continue reading...
 
Back
Top