+ 3

how many languages can use in one program

From All programming language by sub..

11th Jun 2017, 3:51 AM
Muhammed Niyas K M
Muhammed Niyas K M - avatar
4 odpowiedzi
+ 2
Badly. If there is no urgent need, stick to a single language. You're increasing dependencies and complexity. But when you have existing code providing interesting functionality, it can be easier to glue it together than to recreate it. Some important points to note about this example: HTML is NOT a programming language, it is a markup language.The PHP and HTML are not executed/interpreted in the same place: PHP code is executed by a PHP interpreter running on the server and the result is "injected" into the surrounding HTML. Then that whole blob is sent to the client/browser which renders the complete HTML In practice, it might be very useful to mix a number of domain-specific languages into a single host language. There's rarely a need in mixing two or more equally "general purpose" languages together in single source code file, although you'll often find projects written in both, say, VB.NET and C#, with different language components compiled separately. If you're curious about what languages are used for some of the most important open source projects in the world, you can check out Ohloh.net. Statistics about the source code of many projects can be found there. Conclusion Languages are rarely mixed within files, and when they are, it is for laughs. People even try to avoid mixing languages within projects because of the extra hassle it introduces. So, while it can be technically possible, mixing different languages is neither common nor pragmatic.
11th Jun 2017, 4:55 AM
Gaurav Sukhatme
Gaurav Sukhatme - avatar
+ 3
only one dear :)
11th Jun 2017, 4:32 AM
Gaurav Sukhatme
Gaurav Sukhatme - avatar
+ 3
thanks for the detailed information I have to change my way of believing..haha
11th Jun 2017, 4:58 AM
Muhammed Niyas K M
Muhammed Niyas K M - avatar