Click here to Skip to main content
15,889,462 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: All of the above? Pin
Mike Hankey7-Jul-14 8:57
mveMike Hankey7-Jul-14 8:57 
GeneralRe: All of the above? Pin
Erik Burd7-Jul-14 12:08
professionalErik Burd7-Jul-14 12:08 
GeneralThe worst programming habit,... PinPopular
Smart K87-Jul-14 3:10
professionalSmart K87-Jul-14 3:10 
GeneralRe: The worst programming habit,... Pin
56789012347-Jul-14 4:46
56789012347-Jul-14 4:46 
GeneralRe: The worst programming habit,... Pin
Smart K87-Jul-14 4:57
professionalSmart K87-Jul-14 4:57 
GeneralRe: The worst programming habit,... Pin
Erik Burd7-Jul-14 12:11
professionalErik Burd7-Jul-14 12:11 
GeneralAgile Programming and Refactoring PinPopular
Marc Clifton7-Jul-14 2:14
mvaMarc Clifton7-Jul-14 2:14 
GeneralRe: Agile Programming and Refactoring PinPopular
Gary R. Wheeler7-Jul-14 2:50
Gary R. Wheeler7-Jul-14 2:50 
My problem with Agile has always been that there's no plan - just implement whatever the customer wants this week. You're always chasing a moving target. Don't worry about future requirements, just make them happy today. If the product is of any size, the end result is a hacked-together, incoherent mess.

The products I've worked on for the last 15 years or so are multi-year efforts by a team of five to twelve people. If we didn't have a fairly good outline of what we were going to implement, we'd never have finished anything. We've become good enough at it that the 'process' is second nature. Based on requirements, we outline component behaviors and specify interfaces in detail. Ironically, we refactor fairly often as requirements change, especially during product maintenance. We even do 'scrum' to a certain extent, since we build and test almost continuously.

I've been in this trade for over 30 years. Every time I turn around there's a magic bullet being touted to management that will turn software development into a nice box with a crank on the side. Turn the crank, and out comes beautiful, money-making product. Regardless of how many times we tell them, the box continues to produce sh*t.
Software Zen: delete this;

GeneralRe: Agile Programming and Refactoring Pin
Marc Clifton7-Jul-14 2:56
mvaMarc Clifton7-Jul-14 2:56 
GeneralRe: Agile Programming and Refactoring Pin
Gary R. Wheeler7-Jul-14 3:26
Gary R. Wheeler7-Jul-14 3:26 
GeneralRe: Agile Programming and Refactoring Pin
W Balboos, GHB7-Jul-14 5:21
W Balboos, GHB7-Jul-14 5:21 
GeneralRe: Agile Programming and Refactoring Pin
Ravi Bhavnani7-Jul-14 7:34
professionalRavi Bhavnani7-Jul-14 7:34 
GeneralRe: Agile Programming and Refactoring Pin
Gary R. Wheeler7-Jul-14 8:06
Gary R. Wheeler7-Jul-14 8:06 
GeneralRe: Agile Programming and Refactoring Pin
Ravi Bhavnani7-Jul-14 9:16
professionalRavi Bhavnani7-Jul-14 9:16 
GeneralRe: Agile Programming and Refactoring Pin
Nelek7-Jul-14 11:45
protectorNelek7-Jul-14 11:45 
GeneralRe: Agile Programming and Refactoring Pin
Ravi Bhavnani7-Jul-14 11:53
professionalRavi Bhavnani7-Jul-14 11:53 
GeneralRe: Agile Programming and Refactoring Pin
Nelek7-Jul-14 12:00
protectorNelek7-Jul-14 12:00 
GeneralRe: Agile Programming and Refactoring Pin
Gary R. Wheeler7-Jul-14 14:00
Gary R. Wheeler7-Jul-14 14:00 
GeneralRe: Agile Programming and Refactoring Pin
Pete O'Hanlon8-Jul-14 1:46
mvePete O'Hanlon8-Jul-14 1:46 
GeneralRe: Agile Programming and Refactoring Pin
thatraja8-Jul-14 2:25
professionalthatraja8-Jul-14 2:25 
GeneralRe: Agile Programming and Refactoring Pin
Rob Philpott10-Jul-14 22:02
Rob Philpott10-Jul-14 22:02 
GeneralAll, but these two give me sleepless nights... PinPopular
Sander Rossel7-Jul-14 0:02
professionalSander Rossel7-Jul-14 0:02 
GeneralMisleading comments Pin
Rosenne6-Jul-14 23:24
Rosenne6-Jul-14 23:24 
GeneralAlmost all PinPopular
Nelek6-Jul-14 22:58
protectorNelek6-Jul-14 22:58 
GeneralRe: Almost all Pin
Gary R. Wheeler7-Jul-14 2:58
Gary R. Wheeler7-Jul-14 2:58 

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.