Click here to Skip to main content
15,889,281 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: 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 
GeneralRe: Using VB Pin
OriginalGriff9-Jul-14 4:57
mveOriginalGriff9-Jul-14 4:57 
GeneralMessage Removed Pin
10-Jul-14 2:59
professionalN_tro_P10-Jul-14 2:59 
GeneralRe: Using VB Pin
Rob Philpott10-Jul-14 22:01
Rob Philpott10-Jul-14 22:01 
GeneralRe: Using VB Pin
crazedDotNetDev8-Jul-14 10:00
crazedDotNetDev8-Jul-14 10:00 
As a self taught coder with 17+ year’s professional experience, I take objection to your assessment. The industry's obsession with denouncing self teaching and the entire BASIC family of languages really irritates me. Although I can understand how they tend to be linked together. It's no accident self taught coders tend to sprout from BASIC, that's what the language was designed to do. I cut my teeth on GW-BASIC back in the 80s.

In all fairness I can see how self taught coders tend to have a higher percentage of bad habits. However in my observation during countless coder interviews & hires I've found recent college grads are to be voided, unless the project can withstand a productivity drag. Even grads at the top of their class require significant coaching. I find it sad that US colleges seem to be unable to produce coders that can step into a corporate environment and get the job done.

All that said, during those same interviews I realized something else. Self taught coders tend to have raw talent and a wonderful drive to learn. College tends to instill a broad (sometimes even deep) skill base. The best among us tend to have tons of talent, drive, and education.

And for the record… current versions of VB ARE THE SAME AS C# with slightly different syntax. You cannot make an assessment to one without it also applying to the other. IMHO this has caused VB to lose some of its self-teaching ability.
- great coders make code look easy

- When humans are doing things computers could be doing instead, the computers get together late at night and laugh at us. - ¿Neal Ford?

GeneralRepeating code Pin
Halil ibrahim Kalkan7-Jul-14 5:49
Halil ibrahim Kalkan7-Jul-14 5:49 
GeneralFirst-Adopter Pin
W Balboos, GHB7-Jul-14 5:24
W Balboos, GHB7-Jul-14 5:24 
GeneralAll of the above? PinPopular
Gary R. Wheeler7-Jul-14 3:25
Gary R. Wheeler7-Jul-14 3:25 
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 
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 

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.