Click here to Skip to main content
15,902,896 members

Survey Results

What are the worst programming habits

Survey period: 7 Jul 2014 to 14 Jul 2014

Inspired by a rant-fest

OptionVotes% 
No comments in code1,05740.95
Terrible variable names1,35752.58
Bad / dangerous code formatting69526.93
Mystery side-effects in code1,07641.69
Using magic numbers64424.95
Leaving commented-out code hanging around too long60923.60
Repeating code (Cut and Paste programming)1,28549.79
Poor program structure1,10742.89
Writing code that assumes a default behaviour67326.08
Swallowing errors95036.81
Not checking input parameters / return values / null testing1,05840.99
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralRe: Interesting selections made Pin
Adam David Hill11-Jul-14 13:28
professionalAdam David Hill11-Jul-14 13:28 
GeneralDue to Variable naming .... i, j ,k ..... Pin
RhishikeshLathe9-Jul-14 22:17
professionalRhishikeshLathe9-Jul-14 22:17 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Dávid Kocsis9-Jul-14 23:58
Dávid Kocsis9-Jul-14 23:58 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
thatraja10-Jul-14 2:13
professionalthatraja10-Jul-14 2:13 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Andreas Gieriet10-Jul-14 8:44
professionalAndreas Gieriet10-Jul-14 8:44 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Karen Mitchelle10-Jul-14 16:04
professionalKaren Mitchelle10-Jul-14 16:04 
GeneralCopypasta Pin
Jason Hutchinson9-Jul-14 5:15
professionalJason Hutchinson9-Jul-14 5:15 
GeneralNot learning the art of programming Pin
Shameel9-Jul-14 5:06
professionalShameel9-Jul-14 5:06 
GeneralMost of the above options ends up with "Mystery side-effects" in code Pin
Ravimal Bandara8-Jul-14 21:35
Ravimal Bandara8-Jul-14 21:35 
GeneralAbout the 1st option Pin
thatraja8-Jul-14 2:24
professionalthatraja8-Jul-14 2:24 
GeneralSpend more time with code cleanup Pin
Swinkaran7-Jul-14 13:24
professionalSwinkaran7-Jul-14 13:24 
GeneralRe: Spend more time with code cleanup Pin
Kornfeld Eliyahu Peter7-Jul-14 20:40
professionalKornfeld Eliyahu Peter7-Jul-14 20:40 
GeneralRe: Spend more time with code cleanup Pin
Keith Barrow7-Jul-14 23:25
professionalKeith Barrow7-Jul-14 23:25 
GeneralRe: Spend more time with code cleanup Pin
PIEBALDconsult8-Jul-14 6:42
mvePIEBALDconsult8-Jul-14 6:42 
AnswerOh, I checked them all because .. PinPopular
MacSpudster7-Jul-14 7:21
professionalMacSpudster7-Jul-14 7:21 
GeneralDesert island discs code PinPopular
Duncan Edwards Jones7-Jul-14 7:04
professionalDuncan Edwards Jones7-Jul-14 7:04 
GeneralRe: Desert island discs code Pin
Swinkaran7-Jul-14 13:27
professionalSwinkaran7-Jul-14 13:27 
GeneralUsing VB PinPopular
  Forogar  7-Jul-14 6:13
professional  Forogar  7-Jul-14 6:13 
GeneralRe: Using VB PinPopular
me@dagsunde.com7-Jul-14 22:37
professionalme@dagsunde.com7-Jul-14 22:37 
GeneralRe: Using VB Pin
Jim McCool8-Jul-14 5:17
Jim McCool8-Jul-14 5:17 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 7:54
professionalme@dagsunde.com8-Jul-14 7:54 
GeneralRe: Using VB Pin
  Forogar  8-Jul-14 7:59
professional  Forogar  8-Jul-14 7:59 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 9:21
professionalme@dagsunde.com8-Jul-14 9:21 
GeneralRe: Using VB Pin
  Forogar  8-Jul-14 10:53
professional  Forogar  8-Jul-14 10:53 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 21:28
professionalme@dagsunde.com8-Jul-14 21:28 

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.