Click here to Skip to main content
15,121,891 members

Survey Results

What are the worst habit a developer can have?

Survey period: 28 Jun 2021 to 5 Jul 2021

Obviously not an exhaustive list...

OptionVotes% 
Reinventing the wheel instead of using existing libraries35140.48
Prematurely optimising18821.68
Adding a million features "just in case"35340.72
Not commenting (especially when it's tricky code)43149.71
Commenting too much12214.07
Massively over-engineering things40146.25
Pulling in new technologies / libraries / frameworks for no good reason44150.87
Using the same tool for every single problem11913.73
Leaving edge cases and error handling to others36341.87
5,000 line functions39445.44
Other (please comment)242.77
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralAssuming rather than measuring Pin
Duncan Edwards Jones2-Jul-21 3:56
professionalDuncan Edwards Jones2-Jul-21 3:56 
GeneralAll of the above Pin
Daniel Pfeffer30-Jun-21 23:51
professionalDaniel Pfeffer30-Jun-21 23:51 
GeneralUnnecessary one-line functions Pin
rjmoses30-Jun-21 2:22
professionalrjmoses30-Jun-21 2:22 
GeneralOther: violating the Boy Scouts rule Pin
Ravi Bhavnani29-Jun-21 6:53
professionalRavi Bhavnani29-Jun-21 6:53 
GeneralRe: Other: violating the Boy Scouts rule Pin
Dan Neely30-Jun-21 3:59
MemberDan Neely30-Jun-21 3:59 
Generaltoo much comments? Pin
Matt McGuire29-Jun-21 5:47
professionalMatt McGuire29-Jun-21 5:47 
GeneralRe: too much comments? Pin
MichaelLuna29-Jun-21 6:51
MemberMichaelLuna29-Jun-21 6:51 
GeneralRe: too much comments? Pin
W Balboos, GHB29-Jun-21 8:56
mveW Balboos, GHB29-Jun-21 8:56 
MichaelLuna wrote:
Limit comments. Comments go stale and end up just being clutter.
Comment like you, yourself, will need to go back to that point and need a reminder of what's going on.

I also use an implicit comment with functions and blocks, for example:
C++
function startsHere() {

} // function startsHere()
and done similarly for blocks of any type that have a { and }. No mystery where it begins and ends, and more importantly, when nested, where they begin and end.

Having observed most other code, at least around here, is not commented, I'd rather have too much to read than stopping and staring and finding external references and all that shyte the hard way.


Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: too much comments? Pin
Vivi Chellappa1-Jul-21 19:48
professionalVivi Chellappa1-Jul-21 19:48 
Generalthe smart git guy Pin
rallets29-Jun-21 5:03
Memberrallets29-Jun-21 5:03 
GeneralOther: Making things harder or illogical just to seem professional Pin
Bruce Patin29-Jun-21 4:17
MemberBruce Patin29-Jun-21 4:17 
GeneralOther: not following standards Pin
PSU Steve29-Jun-21 4:10
professionalPSU Steve29-Jun-21 4:10 
GeneralRe: Other: not following standards Pin
rjmoses30-Jun-21 2:31
professionalrjmoses30-Jun-21 2:31 
GeneralSource control commit messages Pin
decaffeinatedMonkey29-Jun-21 2:51
MemberdecaffeinatedMonkey29-Jun-21 2:51 
GeneralRe: Source control commit messages Pin
Matt McGuire29-Jun-21 5:49
professionalMatt McGuire29-Jun-21 5:49 
GeneralOther - Leaving Unused Code/Tables around "just in case" Pin
Member 1454164829-Jun-21 2:39
professionalMember 1454164829-Jun-21 2:39 
GeneralRe: Other - Leaving Unused Code/Tables around "just in case" Pin
r_hyde30-Jun-21 11:16
Memberr_hyde30-Jun-21 11:16 
GeneralPrematurely optimising Pin
KateAshman29-Jun-21 0:27
MemberKateAshman29-Jun-21 0:27 
GeneralMy others Pin
JohaViss6129-Jun-21 0:06
professionalJohaViss6129-Jun-21 0:06 
GeneralAlmost all of them, and "other" PinPopular
Greg Utas28-Jun-21 8:59
mvaGreg Utas28-Jun-21 8:59 
GeneralRe: Almost all of them, and "other" Pin
Matt Bond29-Jun-21 4:24
MemberMatt Bond29-Jun-21 4:24 
GeneralRe: Almost all of them, and "other" Pin
Greg Utas29-Jun-21 4:54
mvaGreg Utas29-Jun-21 4:54 
GeneralRe: Almost all of them, and "other" Pin
Bernhard Hiller29-Jun-21 21:24
MemberBernhard Hiller29-Jun-21 21:24 
GeneralRe: Almost all of them, and "other" Pin
Greg Utas30-Jun-21 1:14
mvaGreg Utas30-Jun-21 1:14 
AnswerOther: not working with others Pin
acomputerdog28-Jun-21 8:59
professionalacomputerdog28-Jun-21 8:59 

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.