Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic defensive programming [duplicate]

Possible Duplicate:
Favorite (Clever) Defensive Programming Best Practices

I am always advised by some programmers to pay concentration to easy debugging. What is defensive programming and to which extend should it be considered while practicing?

And one more important question: is there any key things to consider while coding and what are they?

like image 228
ArK Avatar asked May 15 '26 15:05

ArK


1 Answers

Have a look at

Defensive programming is the idea that the developer makes as few assumptions as absolutely necessary. In addition, the developer preemptively creates code that anticipates not only potential problems but also specification changes.

like image 114
Adriaan Stander Avatar answered May 19 '26 02:05

Adriaan Stander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!