Hacker News new | ask | show | jobs
by nine_k 208 days ago
Writing boilerplate code is mostly creative copy-pasting.

If I were to do it, I would have most of the reusable code (e.g. of a RBAC system) written and documented once and kept unpublished. Then I would ask an AI tool to alter it, given a set of client-specific properties. It would be easier to review moderate changes to a familiar and proven piece of code. The result could be copied to the client-specific repo.

1 comments

What do you use for RBAC today? Do you have AI rewrite it every time?
The author of the initial comment mentioned that customers of contract work prefer code which is 100% theirs, purpose-written, not a dependency, even vendored.