DEV Community

bnmz41998
bnmz41998

Posted on

Bad practice- copying code?

Hello I'm currently diving into Bootstrap and I understand how it works and I think it's incredible.

My question is the documentation for bootstrap gives us examples such as a navbar, would it be bad practice to copy and paste this code to then edit to suit our needs?

Or would you write it out every single time, I'm preferably looking at within the industry would they write it from scratch or use a template?

Thanks
Ben

Top comments (1)

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

Not a bad practice by itself. But weigh and explore the alternatives:

  • If you copy and paste on each project, you do it faster.
  • If you type it on every project, you eventually learn it.

Personally, I would type it to learn; then my knowledge about HTML increases, and become a better front-end programmer.