Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small focused modules vs template or boilerplate code #37

Open
brodycj opened this issue Dec 30, 2021 · 0 comments
Open

small focused modules vs template or boilerplate code #37

brodycj opened this issue Dec 30, 2021 · 0 comments

Comments

@brodycj
Copy link
Owner

brodycj commented Dec 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant