DEV Community

Discussion on: Code snippets or nah?

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

I think this is somewhat of a personality preference, too. I am a builder rather than a maintainer, so I would never be happy in the long term working on something where snippets were the right tool for the job.

Although I guess you could say helper functions are like snippets. They streamline common combinations of code. A lot of the infrastructure code I've made reads like a DSL and uses helpers for common things. However, they are just reusable code rather than something in an outside tool.