+ 3
Language United
How do think if all programming language agreed to have only one single language .Is it possible? What will be the consequences of that?
3 Respostas
+ 6
Each language has its own purpose.
HTML-create webpages
Java-create mobile apps
PHP-manage server
SQL-manipulate databases
Every language cannot be united
+ 3
Yes of course @Muhammad Khairul Amirin Bin Yaacob .But what if we create a new language which do everything from server management to building mobile, manipulate databases , manage layouts , contents etc...I think it is still possible to come to it .If we have not seen yet , I think the reason is that no one has thought about that yet.
+ 1
Oh, you certainly can... in a way. You can
Run a server with Scala Finch
Create a GUI with ScalaFX
Access a database with Scala Slick
Use Scalatags to describe a webpage, i.e. Html
Use Scala.JS instead of Javascript
Use Scala Ammonite as your system shell
And maybe even use Scala for Android apps
I'm sure that works for other languages as well (I really like Scala, you see). But, what you are really doing is using wrappers around the languages and conventions other systems understand. For example Scalatags will be converted to HTML, because a browser only understands HTML.
So to use these things efficiently you have to understand the languages and APIs you are wrapping. If you don't know what <head> is in html, you cannot understand why you might write head() in Scalatags.