In a system which requires use of multiple languages, what are the best practices to ensure a loosely-coupled architecture when code is calling another language's code?
Write the API in C. Many modern languages can call or incorporate C code with little to no hassle. C++, Vala, Python, D, C#, Many Lisps, VB, and Java, just to name a few, allow the use of C code in shared libraries. In this manner, as long as you have a sane interface you can easily call your code from most any language. C is the lowest common denominator of modern computing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With