Dynadot โ€” .com Registration $8.99

Why Do We Have So Many Programming Languages?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

PaddingZero

Established Member
Impact
4
My post title was slightly misleading. Is this theory correct?

So you have a problem, you solve the problem on paper using structured flowcharts, pesudocode and stuff, and now you need to chose a language. This is 1954 and the only language to hand is Fortran. To keep producing lines and lines and lines of code for simple tasks is overkill, so the coder thinks: "What if i could create a language so that instead of typing all this code for one simple action, all i have to do is create a function and the software/engine will create the rest for me in the background.

So the coder creates an engine, and names the language "Basic", dont get confused with the actual language basic, im only providing an example.

Is this how it all began, and is this why we have all these different languages? Some languages aimed at different uses, different o/s's ect.

Basically if you use a machine which dont have such engines, you would create your stuff using machine code, because you have no engine to "interpret" what you feed it. For example, you feed a computer PHP code without installing the PHP it wont understand it. So you feed a computer C that doesn't understand C (with no "interpreter") then nothing will happen.

If im wrong, i need a slap in the face, for some reason this is how i thought it worked. Or around these lines.

Thanks.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
Some languages were created originally to serve a specific purpose and ended up growing into something much larger (have a look for example at the PHP history at http://uk.php.net/history).

Others were created to overcome a specific problem. Languages such as c# were introduced more to make programmers lives easier as they are less complex than C and C++ which it is based on.
 
0
•••
Got Ya!

To create a language that covered every purpose would take a heck of a long time and alot of people and money, hence why languages such as PHP only cover what they need to and not what they dont.

I was only using PHP as an example by the way. I could have taken any language as an example, but PHP is basic compared to say C++.
 
0
•••
PaddingZero said:
I was only using PHP as an example by the way. I could have taken any language as an example, but PHP is basic compared to say C++.

Yes by all means PHP is quite basic compared to C++. PHP is in fact written in C and C++
 
0
•••
There is a problem that many people seem to think that programming is easy and they can make a language to convey this. The best example of this IMO is Visual Basic. A language whose name starts with the word "Beginner's" is not something someone should take seriously for mission critical server apps. Yet...it was pushed my MS as a language that can do anything. I am thinking mostly of VB6. It is an excellent tale of how MS thought they could have more developers in the world by making development easy. But development isn't easy and VB6 became tangled bloatware trying to do tasks it was never designed to do. I'm very thankful for C#.

That leads to the more general issue. As a simple language created for a dedicated task becomes more embraced, people want to use it to do more powerful things. If the language is scalable and well designed this can be a great benefit, if not then you have mayhem.

One thing I always notice is that as languages grow they tend to look more alike (C-ish/C++/Java-ish). Or in the case of PHP, more like Perl (PHP was originally based on Perl so this is no surprise, but it speaks to the original intent of PHP which was to hide the difficulties of Perl, which it now embraces).

So, to me, the answer is that there are so many languages because people keep trying to simplify the difficult. Often they are very successful at this but sometimes become too successful when they try to expand the language past its original intent.

In my perfect world there would only be two languages. One high speed and compiled. One quick and dirty and interpreted.
 
0
•••
Raptor Rex:

An interesting insight and i would have to agree with you. My programming knowledge is not great at the moment, but im trying to get up to speed because i start my Software Engineering course at Uni in 2008.

I was actually going to learn C++ this year, i got a few books on it, my tutor recommended i learn Perl before C++ because C++ is not easy. Im doing Visual Basic at college, we its not Visual Basic so im told its now called .Net. My tutor brought up the same point as you did last week, about how microsoft tried to make VB a language that can do anything, but failed.

Thanks for all the replies, interesting :)
 
0
•••
RaptorRex said:
In my perfect world there would only be two languages. One high speed and compiled. One quick and dirty and interpreted.

I think perhaps you are over simplifying a bit here. The different languages can be used to solve a variety of problems but if you get into them far enough you start to find each one has a better "fit" to certain types of problem solving approaches.

I can't say it well myself, but Paul Graham www.paulgraham.com has written a series of essays that talk about this. He wrote one about how their startup could judge the quality of their competition by which kind of programmers they were hiring. If they were hiring Oracle programmers they knew they had nothing to worry about :)
 
0
•••
mhdoc said:
I think perhaps you are over simplifying a bit here. The different languages can be used to solve a variety of problems but if you get into them far enough you start to find each one has a better "fit" to certain types of problem solving approaches.

I can't say it well myself, but Paul Graham www.paulgraham.com has

My perfect world
:hehe: I certainly don't dispute languages have choicely fits.

Thanks for the link to Paul Graham's site. I will no doubt be spending far too much time there when I should be coding.
 
0
•••
"Why Do We Have So Many Programming Languages?"

Answer: So that the programmers can earn a living and the market would not get over saturated with more then 4 programmers per family. :D

Joking :D

Yes but your theory is right. It saves us from reinventing the wheel every now and then :)
 
0
•••
-Nick- said:
"Why Do We Have So Many Programming Languages?"

Answer: So that the programmers can earn a living and the market would not get over saturated with more then 4 programmers per family. :D
All this time I just thought that was the excuse for so many of the languages' creators being alcoholics :lol:
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back