DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Scratch code or template??
Olalani Oluwaseun
Olalani Oluwaseun

Posted on

Scratch code or template??

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

Top comments (4)

Collapse
 
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.

Collapse
 
anevins12 profile image
Andrew Nevins

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

Collapse
 
olalani profile image
Olalani Oluwaseun

Copying what you needed from the entire project

Collapse
 
anevins12 profile image
Andrew Nevins • Edited on

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!

Meeting a new developer

Stop by this week's meme thread!