Click here to Skip to main content
11,478,174 members (70,082 online)

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 code105740.951057 votes, 40.95%
Terrible variable names135752.581357 votes, 52.58%
Bad / dangerous code formatting69526.93695 votes, 26.93%
Mystery side-effects in code107641.691076 votes, 41.69%
Using magic numbers64424.95644 votes, 24.95%
Leaving commented-out code hanging around too long60923.60609 votes, 23.60%
Repeating code (Cut and Paste programming)128549.791285 votes, 49.79%
Poor program structure110742.891107 votes, 42.89%
Writing code that assumes a default behaviour67326.08673 votes, 26.08%
Swallowing errors95036.81950 votes, 36.81%
Not checking input parameters / return values / null testing105840.991058 votes, 40.99%
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
Generalconcise guidelines, supporting tools, awareness Pin
Andreas Gieriet13-Jul-14 22:24
professionalAndreas Gieriet13-Jul-14 22:24 
GeneralHow about creating function in order to run a simple query Pin
Mohibur Rashid13-Jul-14 18:00
memberMohibur Rashid13-Jul-14 18:00 
GeneralC is the worst Pin
Steppenwolfe13-Jul-14 7:22
memberSteppenwolfe13-Jul-14 7:22 
GeneralRe: C is the worst Pin
Mohibur Rashid13-Jul-14 17:57
memberMohibur Rashid13-Jul-14 17:57 
GeneralRe: C is the worst Pin
Andreas Gieriet13-Jul-14 22:13
professionalAndreas Gieriet13-Jul-14 22:13 
GeneralRe: C is the worst Pin
Austin Mullins14-Jul-14 9:41
memberAustin Mullins14-Jul-14 9:41 
GeneralOh , Hai [modified] Pin
sloppy slim12-Jul-14 23:20
membersloppy slim12-Jul-14 23:20 
GeneralInteresting selections made Pin
Dennis E White11-Jul-14 9:26
memberDennis E White11-Jul-14 9:26 
GeneralRe: Interesting selections made Pin
Adam David Hill11-Jul-14 14:28
professionalAdam David Hill11-Jul-14 14:28 
GeneralDue to Variable naming .... i, j ,k ..... Pin
RhishikeshLathe9-Jul-14 23:17
professionalRhishikeshLathe9-Jul-14 23:17 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Dávid Kocsis10-Jul-14 0:58
memberDávid Kocsis10-Jul-14 0:58 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
thatraja10-Jul-14 3:13
protectorthatraja10-Jul-14 3:13 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Andreas Gieriet10-Jul-14 9:44
professionalAndreas Gieriet10-Jul-14 9:44 
GeneralRe: Due to Variable naming .... i, j ,k ..... Pin
Karen Mitchelle10-Jul-14 17:04
professionalKaren Mitchelle10-Jul-14 17:04 
GeneralCopypasta Pin
Jason Hutchinson9-Jul-14 6:15
memberJason Hutchinson9-Jul-14 6:15 
GeneralNot learning the art of programming Pin
Shameel9-Jul-14 6:06
professionalShameel9-Jul-14 6:06 
GeneralMost of the above options ends up with "Mystery side-effects" in code Pin
Ravimal Bandara8-Jul-14 22:35
memberRavimal Bandara8-Jul-14 22:35 
GeneralAbout the 1st option Pin
thatraja8-Jul-14 3:24
protectorthatraja8-Jul-14 3:24 
GeneralSpend more time with code cleanup Pin
Swinkaran7-Jul-14 14:24
memberSwinkaran7-Jul-14 14:24 
GeneralRe: Spend more time with code cleanup Pin
Kornfeld Eliyahu Peter7-Jul-14 21:40
professionalKornfeld Eliyahu Peter7-Jul-14 21:40 
GeneralRe: Spend more time with code cleanup Pin
Keith Barrow8-Jul-14 0:25
mentorKeith Barrow8-Jul-14 0:25 
GeneralRe: Spend more time with code cleanup Pin
PIEBALDconsult8-Jul-14 7:42
memberPIEBALDconsult8-Jul-14 7:42 
AnswerOh, I checked them all because .. Pin
MacSpudster7-Jul-14 8:21
professionalMacSpudster7-Jul-14 8:21 
GeneralDesert island discs code Pin
Duncan Edwards Jones7-Jul-14 8:04
professionalDuncan Edwards Jones7-Jul-14 8:04 
GeneralRe: Desert island discs code Pin
Swinkaran7-Jul-14 14:27
memberSwinkaran7-Jul-14 14:27 
GeneralUsing VB Pin
Forogar 7-Jul-14 7:13
member Forogar 7-Jul-14 7:13 
GeneralRe: Using VB Pin
me@dagsunde.com7-Jul-14 23:37
memberme@dagsunde.com7-Jul-14 23:37 
GeneralRe: Using VB Pin
Jim McCool8-Jul-14 6:17
memberJim McCool8-Jul-14 6:17 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 8:54
memberme@dagsunde.com8-Jul-14 8:54 
GeneralRe: Using VB Pin
Forogar 8-Jul-14 8:59
member Forogar 8-Jul-14 8:59 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 10:21
memberme@dagsunde.com8-Jul-14 10:21 
GeneralRe: Using VB Pin
Forogar 8-Jul-14 11:53
member Forogar 8-Jul-14 11:53 
GeneralRe: Using VB Pin
me@dagsunde.com8-Jul-14 22:28
memberme@dagsunde.com8-Jul-14 22:28 
GeneralRe: Using VB Pin
OriginalGriff9-Jul-14 5:57
protectorOriginalGriff9-Jul-14 5:57 
GeneralRe: Using VB Pin
Collin Jasnoch10-Jul-14 3:59
professionalCollin Jasnoch10-Jul-14 3:59 
GeneralRe: Using VB Pin
Rob Philpott10-Jul-14 23:01
professionalRob Philpott10-Jul-14 23:01 
GeneralRe: Using VB Pin
Code Monkey-Man8-Jul-14 11:00
memberCode Monkey-Man8-Jul-14 11:00 
GeneralRepeating code Pin
Halil ibrahim Kalkan7-Jul-14 6:49
memberHalil ibrahim Kalkan7-Jul-14 6:49 
GeneralFirst-Adopter Pin
W Balboos7-Jul-14 6:24
memberW Balboos7-Jul-14 6:24 
GeneralAll of the above? Pin
Gary R. Wheeler7-Jul-14 4:25
memberGary R. Wheeler7-Jul-14 4:25 
GeneralRe: All of the above? Pin
Mike Hankey7-Jul-14 9:57
professionalMike Hankey7-Jul-14 9:57 
GeneralRe: All of the above? Pin
Erik Burd7-Jul-14 13:08
memberErik Burd7-Jul-14 13:08 
GeneralThe worst programming habit,... Pin
Smart K87-Jul-14 4:10
professionalSmart K87-Jul-14 4:10 
GeneralRe: The worst programming habit,... Pin
Alex Fr7-Jul-14 5:46
memberAlex Fr7-Jul-14 5:46 
GeneralRe: The worst programming habit,... Pin
Smart K87-Jul-14 5:57
professionalSmart K87-Jul-14 5:57 
GeneralRe: The worst programming habit,... Pin
Erik Burd7-Jul-14 13:11
memberErik Burd7-Jul-14 13:11 
GeneralAgile Programming and Refactoring Pin
Marc Clifton7-Jul-14 3:14
protectorMarc Clifton7-Jul-14 3:14 
GeneralRe: Agile Programming and Refactoring Pin
Gary R. Wheeler7-Jul-14 3:50
memberGary R. Wheeler7-Jul-14 3:50 
GeneralRe: Agile Programming and Refactoring Pin
Marc Clifton7-Jul-14 3:56
protectorMarc Clifton7-Jul-14 3:56 
GeneralRe: Agile Programming and Refactoring Pin
Gary R. Wheeler7-Jul-14 4:26
memberGary R. Wheeler7-Jul-14 4:26 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 10 Aug 2007
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid