Hacker News new | ask | show | jobs
by raquo 2484 days ago
I make (web app) components with only minimal regard for cross project reusability. I don't add any features to them that I don't need for the current project, but I do try to keep them small and decoupled.

I find that liberal use of copy-paste _across projects_ is way cheaper than building up a library of well thought out, generic components even in the long term.

If you have ten concurrent projects that need the same components at the same time it could make sense to build them up as privately published libraries. Otherwise it's unlikely that the overhead and rigidity of that approach will pay off if you only have one or two projects that you're actively working on at any given time.