you do NOT need to write all your programs together to make them work together.
Posted Jan 29, 2013 12:07 UTC (Tue) by
khim (subscriber, #9252)
In reply to:
you do NOT need to write all your programs together to make them work together. by dlang
Parent article:
Poettering: The Biggest Myths
you make programs work together, not by writing them together, but by defining the interface between them. That way the different programs can be written by different people at different times, replaced one by one, etc
That's nice theory but it does not work in practice, sadly.
That is the way to have a long-term robust solution.
It does not work this way. Either stuff is developed in lockstep (to use latest version of GLibC you need latest version of GCC and to use latest version of GCC you need not-yet-released-version of binutils), or there are bunch of problems when one component or another does not adhere to the specs.
And if you develop bunch of small programs in lockstep then why don't develop them together in a single repository? That's how UNIX was traditionally developed after all!
If you consider that all the programs need to be written together, it's a very small step to consider that you can break all your old interfaces because you ship all new versions of everything.
Yup. That's the point: if the interfaces only tie these programs together and are not exposed outside then why do you need to keep them static?
Practice shows that it's impossible to keep bazillion interfaces robust and stable. Only two possibilities can be realized by real people in real life:
1. Large amount of interfaces are in constant flux but some are declared "sacred" and kept around forever.
2. Large amount of interfaces are declared "stable" yet in practice they all evolve in some way and you need to patch system all the time to keep it running.
APIs need to be defined, and you need to support old ones going forward.
Yes. And this is only possible if scope of these APIs are kept limited.
you do NOT need to write all your programs together
If you want stable ABIs? Yes, you do. It's impossible to keep all the ABIs stable which means that either you have some ABIs "set in stone" and most in "we don't care because these are iternal ABIs" state or you have lots of ABIs in "permanently broken" state.
(
Log in to post comments)