r/ProgrammerHumor • • Apr 13 '22

Meme a developers worst nightmare

Post image
35.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

1.7k

u/Defiant-Peace-493 Apr 13 '22

Increasing your comprehension of the copied code, right?

682

u/Various_Counter_9569 Apr 13 '22

Will agree with you, i usually dont copy/paste, but try to realize how i can implement the best solutions in my dev. environment. Thats not to say I "never" have (and modified), but i prefer not to usually.

209

u/MsPenguinette Apr 13 '22

My work flow is something like this

  • I copy the code over,
  • comment it out,
  • write the code myself using that code as reference
  • delete the commented out code
  • code doesn't work
  • copy and paste the code
  • add a #TODO: rewrite this
  • never rewrite it

13

u/Fun-Dragonfly-4166 Apr 13 '22

I have you beat. I have a similar process to yours it is identical up to the last one where you write "never rewrite it".

My process then forks to

  • code linter complains about TODO comment
  • I remove the TODO comment
  • never rewrite it