News for hackers. Stuff that matters.
Re:Death by a Thousand Microservices by corethree on Tuesday September 12, 2023 @03:45AM (#37477943)
>The problem microservices try (tried?) to solve isn't about namespaces, it is about too tight coupling between code.

You can use folders to decouple code by making code private within that folder. Only publicize parts of the code with your languages version of exporting.

Or you can make it private behind an entire new repo and behind an entire service. Only publicize parts of the code through api interfaces like http and make everything 10x harder for the sake of decoupling code.

Re:Death by a Thousand Microservices by atoav on Tuesday September 12, 2023 @04:32AM (#37478234)
[delayed]
Re:Death by a Thousand Microservices by corethree on Tuesday September 12, 2023 @10:46AM (#37482117)
What do you mean "sure?" If you said "sure" then you agree it works so why use any strategy that's 100x harder?

I say again, use a folder bro.

Re:Death by a Thousand Microservices by tored on Tuesday September 12, 2023 @04:03AM (#37478050)
Many languages misses that abstraction to make things private in a folder (namespace) hierarchy to outside consumers. This is something I like to see solution to (integrated with your IDE of choice)
Re:Death by a Thousand Microservices by corethree on Tuesday September 12, 2023 @04:24AM (#37478183)
Python is the only one that I know of that does this. Additionally python uses private by convention: Just prefix the stuff with an underscore.