Click here to Skip to main content
15,507,752 members

Survey Results

Do you do defensive programming?

Survey period: 14 May 2012 to 21 May 2012

"Defensive programming is ... intended to ensure the continuing function of a piece of software in spite of unforeseeable usage of said software". ie provide air-bags and ABS for your code. (suggested by the enigmatic V)

OptionVotes% 
Yes, I use defensive programming always19316.67
I use defensive programming mostly51044.04
I use defensive programming rarely19817.10
No, I don't use defensive programming design595.09
I have no idea of what you speak.19817.10



 
GeneralRe: Never developed a software with granted foreseeable usage... Pin
AlexCode14-May-12 22:15
professionalAlexCode14-May-12 22:15 
GeneralRe: Never developed a software with granted foreseeable usage... Pin
RedSonja14-May-12 22:51
RedSonja14-May-12 22:51 
GeneralRe: Never developed a software with granted foreseeable usage... Pin
AlexCode14-May-12 22:58
professionalAlexCode14-May-12 22:58 
GeneralSaid yes to defensive programming but... Pin
PedroMC14-May-12 2:28
PedroMC14-May-12 2:28 
GeneralNo choice Pin
RedSonja14-May-12 1:32
RedSonja14-May-12 1:32 
GeneralRe: No choice Pin
MichP14-May-12 9:36
MichP14-May-12 9:36 
GeneralRe: No choice Pin
RedSonja14-May-12 21:36
RedSonja14-May-12 21:36 
GeneralWhen given the time Pin
chriselst14-May-12 0:53
chriselst14-May-12 0:53 
Which is rare.

I always try to work out everything the user could possibly do wrong, and code to catch it.

If a user can do something to kill your software than at some point they will.

Defensive programming saves you time later, but requires more time up front cos you need to think about things fully.
Every man can tell how many goats or sheep he possesses, but not how many friends.

GeneralRe: When given the time Pin
Slacker00714-May-12 1:14
professionalSlacker00714-May-12 1:14 
GeneralRe: When given the time Pin
PedroMC14-May-12 2:36
PedroMC14-May-12 2:36 
GeneralRe: When given the time Pin
chriselst14-May-12 2:40
chriselst14-May-12 2:40 
GeneralRe: When given the time Pin
PedroMC14-May-12 2:49
PedroMC14-May-12 2:49 
GeneralRe: When given the time Pin
chriselst14-May-12 2:54
chriselst14-May-12 2:54 
GeneralRe: When given the time Pin
Fabio Franco14-May-12 11:15
professionalFabio Franco14-May-12 11:15 
GeneralWe have many defensive programmers. PinPopular
mojp14-May-12 0:16
mojp14-May-12 0:16 
GeneralRe: We have many defensive programmers. Pin
jim lahey14-May-12 0:50
jim lahey14-May-12 0:50 
GeneralYes, I do Pin
Prasad_Kulkarni13-May-12 23:42
Prasad_Kulkarni13-May-12 23:42 
GeneralRe: Yes, I do Pin
AlexCode14-May-12 22:26
professionalAlexCode14-May-12 22:26 
Generalone of the principals of testing Pin
R. Erasmus13-May-12 23:36
R. Erasmus13-May-12 23:36 
GeneralWTF defensive programming Pin
Ra-one13-May-12 22:31
Ra-one13-May-12 22:31 
GeneralRe: WTF defensive programming Pin
OriginalGriff13-May-12 22:52
mveOriginalGriff13-May-12 22:52 
GeneralRe: WTF defensive programming PinPopular
chriselst14-May-12 0:48
chriselst14-May-12 0:48 
GeneralRe: WTF defensive programming Pin
JOAT-MON14-May-12 8:08
JOAT-MON14-May-12 8:08 
GeneralRe: WTF defensive programming Pin
JackDingler14-May-12 8:20
JackDingler14-May-12 8:20 
GeneralRe: WTF defensive programming Pin
Fabio Franco14-May-12 11:19
professionalFabio Franco14-May-12 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.