DEV Community

Cover image for Scratch code or template??

Scratch code or template??

Olalani Oluwaseun
Am a front-end developer and willingly to learn more in web world
・1 min read

Do senior developer or programmer still write codes from scratch or just use existing template then redesign for the new project???

Discussion (4)

alainvanhout profile image
Alain Van Hout

For any non-trivial project (which is most of them), you'll need to write a lot of code yourself (although an IDE is a big help for the boilerplate). That code will mainly be business logic, which is custom-made, by definition.

anevins12 profile image
Andrew Nevins

Can you clarify whether you mean copying the code for entire projects or just copying a file boilerplate/ template?

olalani profile image
Olalani Oluwaseun Author

Copying what you needed from the entire project

anevins12 profile image
Andrew Nevins • Edited

I think it depends if the project has been originally written in mind to be copied in future. Even if the project's codebase wasn't originally purposed to be re-used, developers still can potentially take code from it and that does happen in the industry. Some projects however are so messy that you would be better starting from scratch. Hope that helps!