[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Monica Shiralkar wrote:Java script
Monica Shiralkar wrote:So we can open a JDBC connection using JavaScript
However I have never seen that being done in any code.
That is why I am trying to understand that when to use java and when to not use java and use a JavaScript and why so?
A small example: dealing with JSON in Java is a royal PITA, but easy in JavaScript. Same with MongoDB. So, as with many other things in software development, the answer is "it depends".
Monica Shiralkar wrote:... programming language can do everything that can be done by any programming language ...
Monica Shiralkar wrote:So does it mean that every programming language can do everything that can be done by any programming language
but we have different languages because in some language some task can be done easily where as in other language some other task can be done easily?
salvin francis wrote:There is a difference between a programming language and a scripting language.
From my own understanding, a scripting language requires a host program and uses the exposed objects from that program to do something. e.g. A client side java script runs within the browser program and is allowed to manipulate the browser dom objects on the fly. It cannot do something outside that territory (e.g. reading files/database/etc...)
In a way, I feel that a scripting language is quite restricted to what it can do and is dependent on its 'host'.
Stephan van Hulst wrote:Eh, I find the difference very trivial or arbitrary in most cases.
