Thursday, February 25, 2021

Get Your Code Together! Submodules, Monorepo: Is There Another Way?

Whatever could be reused, should be. It’s one of the first commandments we learn when we begin to study programming. If you have a reusable piece of code, make it a function; if you have a reusable set of functions, make it a library. If more than one segment of your project uses it, create a shared library. And if you need to change something in this library… aye, there’s the rub.

So what to do with a library, used by several independent services within one project that might be modified by each of them?



from DZone.com Feed https://ift.tt/3dNgxoH

No comments:

Post a Comment