DEV Community

Discussion on: 6 Questions to ask yourself before copy-pasting code

Collapse
 
__orderandchaos profile image
Order & Chaos Creative

Just ask one: What the hell am I doing?

Collapse
 
__orderandchaos profile image
Order & Chaos Creative

An actual tip though, even if you think you've found a snippet of code that does exactly what you want, type it out by hand. It'll help it sink in and improve your recall should you need to do something similar again. Usually, I find when typing it out that I want to change how it works too.

Collapse
 
paulasantamaria profile image
Paula Santamaría

Oh that's a good one!

Collapse
 
paulasantamaria profile image
Paula Santamaría

Or that 😂