DEV Community

Discussion on: Top 20 Tips that will change your coding skills forever

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

.If you can' solve a problem, just copy-paste with google, its the best way to solve it.

Dear merciful heavens, NO! NEVER copy-paste. If you're going to use code you found, retype it and understand it completely. Failing to do so introduces technical debt (bad!), increases the likelihood of bugs you won't know how to solve, and stunts your growth as a developer.

It's okay to use code found online, but you should always take the time to understand it.

On that note...

Try writing readable code, as you are the only one who will fix it in future.

In practice, you are probably not the only one who will fix it in the future. For production code, someone else is going to have to wrap their head around your code sooner or later. Even more reason to make it readable.

Collapse
 
line profile image
Chaitanya Prabuddha

I actually wanna mean that only, don't just copy and paste, memorize it also!