Click here to Skip to main content
15,885,890 members

Survey Results

Which of the following programming errors do you feel you make the most?

Survey period: 25 Feb 2019 to 4 Mar 2019

An no, there's no "I don't make coding errors" option.
OptionVotes% 
Syntax errors (eg typos, missing semi-colon etc)52151.58
null reference error30630.30
Off-by-1 errors11711.58
Logic errors (eg == instead of !=, messing up AND NOT ORs etc)17417.23
Equivalence instead of Assignment (= instead of ==)888.71
Wrong type848.32
Using uninitialised variables or pointers939.21
Memory leak (and memory management in general)11911.78
Other14414.26
I don't code.262.57
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralOther - Typos Pin
Dar Brett3-Mar-19 1:03
Dar Brett3-Mar-19 1:03 
GeneralOther - side effects Pin
Manish K. Agarwal27-Feb-19 19:25
Manish K. Agarwal27-Feb-19 19:25 
GeneralHow is the "billion dollar mistake" not on top? Pin
Sander Rossel27-Feb-19 5:58
professionalSander Rossel27-Feb-19 5:58 
Generalmis-balanced brackets Pin
Pete Lomax Member 1066450526-Feb-19 23:59
professionalPete Lomax Member 1066450526-Feb-19 23:59 
GeneralRe: mis-balanced brackets Pin
kalberts27-Feb-19 0:14
kalberts27-Feb-19 0:14 
The issue of mis-balanced braces brings back memories of the CHILL language, where any composite statement could be labeled. After the closing brace you could (optionally) repeat the label. If it did not match, the compiler could immediately tell you that you had one extra (or missing) closing brace inside the statement.

Also, it helped a lot when reading the code; you wouldn't have to match by indentation to some opening brace, maybe two screenfuls higher up, to see which loop or conditional statement is closed here.

I have seen other languages treating anyhing between the 'end' and the following semicolon as a comment, and I have seen coding standards requiring that you add a comments (using ordinary comment syntax) after the terminating semicolon, but either of these allow arbitrary text that cannot be checked by the compiler.

Having the compiler check it also helped the compiler recover, so that any code following the labeled close is treated as being on the "correct" nesting level, disregarding the nesting error within the composite statement. Really nice detail!
GeneralSynchronization errors Pin
kalberts26-Feb-19 4:50
kalberts26-Feb-19 4:50 
GeneralMagic strings Pin
Duncan Edwards Jones26-Feb-19 2:54
professionalDuncan Edwards Jones26-Feb-19 2:54 
GeneralRe: Magic strings Pin
Manish K. Agarwal27-Feb-19 19:23
Manish K. Agarwal27-Feb-19 19:23 
GeneralAs THE model of Pin
W Balboos, GHB26-Feb-19 2:54
W Balboos, GHB26-Feb-19 2:54 
GeneralNot converting string to float before plotting Pin
Amarnath S25-Feb-19 22:29
professionalAmarnath S25-Feb-19 22:29 
GeneralFirst time round Pin
irneb25-Feb-19 22:25
irneb25-Feb-19 22:25 
GeneralUsually mine are caught by the IDE or compiler Pin
John R. Shaw25-Feb-19 8:39
John R. Shaw25-Feb-19 8:39 
GeneralIn Javascript, most of the above, in C#, none of the above Pin
Marc Clifton25-Feb-19 2:47
mvaMarc Clifton25-Feb-19 2:47 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
ronlease25-Feb-19 3:17
professionalronlease25-Feb-19 3:17 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
Marc Clifton25-Feb-19 5:03
mvaMarc Clifton25-Feb-19 5:03 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
ronlease26-Feb-19 3:51
professionalronlease26-Feb-19 3:51 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
kalberts27-Feb-19 0:27
kalberts27-Feb-19 0:27 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
Frank Malcolm26-Feb-19 14:56
Frank Malcolm26-Feb-19 14:56 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
Chris Maunder3-Mar-19 12:54
cofounderChris Maunder3-Mar-19 12:54 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
Dejan Petrovic3-Mar-19 16:47
Dejan Petrovic3-Mar-19 16:47 
GeneralRe: In Javascript, most of the above, in C#, none of the above Pin
Chris Maunder4-Mar-19 9:42
cofounderChris Maunder4-Mar-19 9:42 
GeneralI don't make most programming errors - per se Pin
Slacker00725-Feb-19 1:48
professionalSlacker00725-Feb-19 1:48 
GeneralRe: I don't make most programming errors - per se Pin
Dan Neely25-Feb-19 4:41
Dan Neely25-Feb-19 4:41 
GeneralRe: I don't make most programming errors - per se Pin
Slacker00725-Feb-19 5:22
professionalSlacker00725-Feb-19 5:22 
GeneralI don't make coding mistakes... PinPopular
#realJSOP25-Feb-19 1:15
mve#realJSOP25-Feb-19 1:15 

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.