DEV Community

Ben Halpern
Ben Halpern

Posted on

What are your worst coding habits?

Is it bad commit messages, getting distracted by social media, commenting out tests?

Let’s hear it all.

Latest comments (164)

Collapse
 
karlredman profile image
Karl N. Redman

porn

however you define porn these days.... it's a distraction. If your porn is hours of netflix, ok. But that is potentially a bad habit. Basically everything that isn't productive is bad -right?

I disagree with this concept. IMHO people need to do various things in order to be productive at 'something'. I think there's some science behind this but meh, look that up on your own time.... I have 1 year to catch up on free BBC Dr. Who episodes via some darkweb torrent somewhere...

Collapse
 
jldevezas profile image
José Devezas

I still use prints instead of a debugger. It's a lousy habit I've been fighting against for years.

Collapse
 
murtezayesil profile image
Ali Murteza Yesil

Spending too much time trying to optimize hotkeys that I get no time to learn and use them.

Collapse
 
steffenpedersen profile image
Steffen Pedersen

My worst coding habit is being too careful and thorough. This will result in me working slowly. It is something that I try to improve every day 😃

Collapse
 
javierg profile image
Javier Guerra

My editor is VIM, and I use arrow keys. Also I don't use autocomplete, I actually hate it. Not sure why. I like to write words my self. Anyways, most of my time coding is hitting arrow keys, not typing actual code.

Collapse
 
wernancheta profile image
Wern Ancheta

I use jQuery for every single project.

Collapse
 
keysl1831 profile image
KL Lawingco

I work fast when on a team, usually I finish and commits my codes first because I don't want to fix conflicts.

Collapse
 
amirition profile image
Amirition

Not doing that tiny little final test ...

Collapse
 
daanwilmer profile image
Daan Wilmer
  • Getting distracted by social media (especially dangerous when my music is on YouTube).
  • Writing tests after I wrote the code, when I should've used TDD and wrote the test first.
  • Not asking in time (although consciously trying to ask more often does help)
  • Being late for the stand-up
Collapse
 
munaibh profile image
Munaib Hussain

Spending way to much time naming: directories, files and functions/variables, It's my biggest time sink.

Collapse
 
papagoat profile image
Terence Lucas Yap

Not commenting my code regularly. My future self hates me.

Collapse
 
upendramanve profile image
upendramanve

This is me every time I want to go sudo

suod -s 
bash: suod: command not found
Collapse
 
sulemankhann profile image
Suleman Khan

I watched tutorials and take many programming courses and think that i learn by just watching and practicing with instructor and not building some projects on that technology on my own.

Collapse
 
janglee123 profile image
Meru Patel

Writing code without learning, reading.

Collapse
 
denmch profile image
Den McHenry

I do a lot of Razor templating (C# with HTML), and when I do something dependent on an external API (e.g., an Instagram widget), I usually wrap it in a try-catch block without handling the exception. I usually just print an HTML comment like, <!— Something went wrong with the Instagram widget. —>.