How do big polyglot projects that use multiple languages to write their server components organize their code?
One of the need arises when doing that is to have models and services written in multiple languages. This leads us to:
/models /php /js /ruby /lib /php /js /ruby
Alternatively we could put implementations written in different languages into the same folder and only differentiate them by the file extension.
/models user.php user.js role.rb /lib auth.php service.js anotherService.rb
What are some common patterns to deal with this?