brodycj / ask-me-anything

ASK ME ANYTHING such as support, ideas, or personal questions
Creative Commons Attribution 4.0 International
4 stars 1 forks source link

small focused modules vs template or boilerplate code #37

Open brodycj opened 2 years ago

brodycj commented 2 years ago

I generally like the well-known "small focused modules" philosophy: https://blog.sindresorhus.com/small-focused-modules-9238d977a92a

For example, I think it would be nice to publish small focused modules or packages from react-recompose ref: react-recompose/react-recompose#30

OTOH I have seen cases where utility functions are so small that we may as well use them by copy-and-paste.

One alternative is using macros. I have identified multiple solutions for macros in JavaScript in #35.

Another question is dealing with ownership, copyright, and licensing when using boilerplate code, template code, or snippets. See #36.