DEV Community

loading...

Discussion on: What are your worst coding habits?

Collapse
ddhogan profile image
Donna Hogan
  • git push --force on a regular basis
  • using VSC to open dot files and not taking the time to learn vim or nano, etc
Collapse
citizen428 profile image
Michael Kohl

If you start using —force-with-lease instead the habit becomes quite a bit less bad.

Collapse
nickytonline profile image
Nick Taylor (he/him)

My git alias, pf,is just for that, alias.pf push --force-with-lease. More here 😉

Collapse
ben profile image
Ben Halpern Author

I don’t think the second is a bad habit. There’s no special reason one needs to be using bin or nano imo.

Collapse
ericcurtin profile image
Eric Curtin

I think all Unix/Linux developers should know vim. Because vi or vim is almost always installed on these variants. Sure for local development a UI is great, a very useful tool! But for editing files on remote machines, the ability to ssh to a remote machine and make a quick change is very important.

Collapse
selbekk profile image
selbekk • Edited

My git alias for that command is git fush 😄

Collapse
colorcodedcode profile image
Robert Schaap

I need that in my life. I'm an obsessive compulsive interactive rebaser.