Click here to Skip to main content
15,397,498 members

Survey Results

When it comes to bugs in code, which of these is closest to your philosophy?

Survey period: 20 Jan 2020 to 27 Jan 2020

Assume you're in a perfect world where you get to call the shots , you choose the projects, and you answer to no one.

My code must not, and will not, have bugs.749.31
I spend more time ensuring there are no bugs than I do ensuring the code is resilient to bugs516.42
I balance my time writing good code and writing code that can handle bugs36646.04
I just kinda try and write good code and don't really think about it13617.11
My code will have bugs, but my error handling is so good no one will notice283.52
I code therefore I write bugs. They aren't really an issue to me.11814.84

GeneralAnother missing option Pin
Dean Roddey26-Jan-20 5:16
MemberDean Roddey26-Jan-20 5:16 
GeneralTechnically, my bugs code me. Pin
RedDk24-Jan-20 10:23
MemberRedDk24-Jan-20 10:23 
GeneralMissing option Pin
Gary Wheeler21-Jan-20 2:01
MemberGary Wheeler21-Jan-20 2:01 
PraiseRe: Missing option Pin
Slow Eddie21-Jan-20 3:02
professionalSlow Eddie21-Jan-20 3:02 
GeneralRe: Missing option Pin
Gary Wheeler21-Jan-20 3:08
MemberGary Wheeler21-Jan-20 3:08 
GeneralRe: Missing option Pin
Nelek24-Jan-20 1:58
protectorNelek24-Jan-20 1:58 
GeneralThere's always one more bug Pin
M.Vo.20-Jan-20 20:52
MemberM.Vo.20-Jan-20 20:52 
GeneralRe: There's always one more bug Pin
Member 798912220-Jan-20 22:55
MemberMember 798912220-Jan-20 22:55 
GeneralExperience Pin
W Balboos, GHB20-Jan-20 3:02
mveW Balboos, GHB20-Jan-20 3:02 
GeneralRe: Experience Pin
Fred Kreppert20-Jan-20 5:45
MemberFred Kreppert20-Jan-20 5:45 
I agree with your philosophy that the user is "the enemy". They ultimately do things that you would never expect. For instance, instead of entering a number somewhere, they will try entering their name. Why, because they are just plain stupid, and often even try to break your program.

So, here is a true, yet very funny story.

Back when i was in college in the early 80's, we used to joke about what would happen in 2000 when a year such as 00 would mean 1900 instead of 2000. Yeah, we had one computer back then that still used punch cards too, Laugh | :laugh: A newer computer they had just installed had terminals but languages still made use of 2 digit years even on it. Thus, as programmers we were already well aware of the Y2K problem long before it ever hit the news media.

In 1978 I began working with genealogy. In genealogy there is no such thing as a 2 digit year. Your g.grandfather was born in 56. Is that 1756 or 1856? Now days it could even be 1956. Thus I got used to always using 4 digit years very quickly. Back then, genealogy records were all on paper so we didn't have to worry about computers.

Now move ahead to 1994. By then I had my own business and released a program for Windows 3.1 that was designed for and used a touch screen. No one even knew what a touch screen was back then, but that is a different issue. A gentleman bought the program from me in late 1994. In January 1995 he called me up and said that he had found a bug that crashed the program. I looked at where he said the bug was but couldn't duplicate it. I then had him walk through and tell me exactly what he was doing, letter for letter, number for number what he was entering and click by click what he was clicking on. I followed on my screen what he was entering. Sure enough, there was a problem! Then I realized what he was doing. The dialog box he was on where the bug occurred required entering a date. The software automatically entered the current date in the date field when the dialog box was opened, which is the date you would use most of the time when using the software.

So what was wrong? He was replacing the date with the date for the following day. He was entering it as 01/25/95. See the problem yet? He entered the year as 2 digits. I was so used to always using 4 digit years due to my genealogy expreience that it didn't occur to me that someone would use 2 digits to enter the year in that field. The default date that was entered had a 4 digit year as well. I explained to him that if he entered a 4 digit date it would work just fine. His immediate response was "well that's dumb, no one ever uses 4 digit dates like that". Later that day I was able to send him an update so that he could enter a 2 digit year. The fix was such that if you entered a 2 digit year that was between 00 and 90 it would assume you meant 2000 and not 1900. The software was Y2K compatible well before 2000 because of the way I wrote it originally. I had begun working on the design of it back in 1991 (which was for DOS back that far, but I soon switched to Windows 3.0 and 3.1 soon after).

It wasn't long after this that the whole Y2K issue hit the mainstream news media and that everyone would need to get used to the idea of using 4 digit years. I almost felt like calling this guy back up again and asking what he thought about my software needing to enter a 4 digit year, even before Y2K became widely known. I never did, but I have always thought it would have been funny to have done so.

So, yes the user is the "enemy". My software was perfect, and Y2K compatible long before it became fashionable Big Grin | :-D . It was the "enemy" who thought that it wasn't Laugh | :laugh:
GeneralRe: Experience Pin
Member 798912220-Jan-20 22:44
MemberMember 798912220-Jan-20 22:44 
GeneralRe: Experience Pin
Tom Corbett Space Cadet20-Jan-20 9:35
professionalTom Corbett Space Cadet20-Jan-20 9:35 
GeneralRe: Experience Pin
Member 798912220-Jan-20 21:18
MemberMember 798912220-Jan-20 21:18 
GeneralThere will be bugs... Pin
Mehdi Gholam20-Jan-20 2:20
MemberMehdi Gholam20-Jan-20 2:20 
PraiseRe: There will be bugs... Pin
Slacker00720-Jan-20 2:59
professionalSlacker00720-Jan-20 2:59 
GeneralRe: There will be bugs... Pin
Ravi Bhavnani20-Jan-20 8:55
professionalRavi Bhavnani20-Jan-20 8:55 
GeneralRe: There will be bugs... Pin
kmoorevs20-Jan-20 10:52
Memberkmoorevs20-Jan-20 10:52 
GeneralRe: There will be bugs... Pin
agolddog21-Jan-20 3:23
Memberagolddog21-Jan-20 3:23 
GeneralI code therefore I bug Pin
Mike Hankey20-Jan-20 1:24
professionalMike Hankey20-Jan-20 1:24 
GeneralThere will be bugs Pin
den2k8819-Jan-20 23:07
professionalden2k8819-Jan-20 23:07 
GeneralRe: There will be bugs Pin
Slacker00720-Jan-20 3:01
professionalSlacker00720-Jan-20 3:01 
GeneralRe: There will be bugs Pin
Gary Wheeler21-Jan-20 2:05
MemberGary Wheeler21-Jan-20 2:05 
Generalunfortunately, in the "real world," all too often ... Pin
BillWoodruff19-Jan-20 21:41
mveBillWoodruff19-Jan-20 21:41 
GeneralPerfect world has no bugs Pin
Eek Ten Bears19-Jan-20 20:40
MemberEek Ten Bears19-Jan-20 20:40 
GeneralRe: Perfect world has no bugs Pin
Member 798912220-Jan-20 23:03
MemberMember 798912220-Jan-20 23:03 

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.