Haha - that's a good laugh. You shouldn't anger anybody by writing stuff like
doubleman wrote:If Java is built at a higher language (though I'm not sure what that means, I could just read the wikipedia article on programming languages), then why learn C or C++? What's the use in saying "hello world", in Javascript, when we can say it in C? Does C have more functions? Why do we use Javascript? ...why wouldn't we just have a language that "does it all"? Is this impossible?
Anyway, the reason that I think we have different programming languages is because there are specific needs based on the system (I don't mean the computer, I mean the software). For example, using C to write a program that moves a whole tree of files on your hard drive up a whole directory might be overkill - that's what scripting and shell languages are far - one time simple tasks (don't get me wrong, they are also useful for full-out applications). By saying that Java is built at a higher level than C or C++, I am talking about the level at which you must understand what the computer is doing in order to program. Higher-level languages, like C#, Java, or even Python abstract most of the low-level stuff or stuff closest to the machine. That makes it simpler to write a program that does more in less time. Writing a program at the lowest level, machine code, that would do the same thing might take hours, whereas the Java version might take minutes. The reason we have C and C++ is to write applications that have full control over the computer that they run on, like operating systems such as Windows or Linux, but we don't necessarily need to have full control when we write a simple text editor, so it might be quicker and in many cases more useful to write the text editor in C#.
Basically for the most part choosing a programming language to use comes down to a few things, 1) What is implemented on the system? 2) What does the language need to do? 3) How well do you know which language? and 4) Can you do what you want to do in which language? Javascript is suitable for scripting web pages and shell scripts, but not very good for writing a word processor. Java is better for writing a word processor, but you'd have to go about it in a convoluted way to use it for scripting a web page, granted there are servlets, but they are server-side, whereas JavaScript would be client-side -- different experiences completely.
I hope that gives you a better understanding somewhat of why so many languages exist in the realm of programming.