Question:
What programming language should I learn?
meltuhamy
2008-02-08 09:18:58 UTC
Well, I'm looking to learn a programming language from these:
¬ Java
¬ C++
¬ Visual Basic.
¬ Pascal

Now I know there isn't such thing as a best programming language, but, at least, which one is most widely used? I.e. which one can I build the largest variety of programs in?
Basically I'm looking for a sort of.. Well... Comparison sort of thing.

All help is much appreciated.
Seventeen answers:
2008-02-08 09:22:04 UTC
Programming is a great talent to learn as you can put your computer skills to life and build real life applications, let me tell you what each language does:



Java is a good place to start, but I do suggest visual Basic, Java can be used to develop games and applications. Its a little more advance than Visual basic.



C++ is very powerful and used in game development. If you take a computer game, it will probably run on programming C++. This language is probably the hardest to learn. If you wanted to learn this, I would start with Visual Basic First.



Visual basic, is a program that makes you design simple applications, its the easiest of the lot, and microsoft even offer tutorials on how to learn it. I started of with Visual Basic and progressed from this ever since. I Reccomend you start with this language.



I'me not too sure with pascal but it seems to be more advance than visual basic, again this is a language you could learn after Visual Basic.



So what I'me trying to say is, that visual basic is a great place to start to start making applications, you can then move onto others in the future, this way you will have a better understanding.



Visual basic also do a program on c++, so you can learn c++ with visual basic.



Heres some simple code for visual basic:

Msgbox("Hello there")



So simple!



If your interested in game development, move onto C++ after you've experienced with Visual Basic. You can branch out to other programming languages



I would also say that C# and C++ is the most used programming languages widely used.



Good Luck!
2008-02-08 10:51:53 UTC
I have to put in a plug for a very high level language, python. Python has a very clean syntax like this:



def double(x):

    return x + x



It has list comprehensions:

myList = [double(i) for i in range(5)]

# myList is now [0, 2, 4, 6, 8]



To do the same thing in Java:

public Class Example {

  public static void main( String [] argv ) {

    static int double( int x ) { return x + x; }

    ArrayList myList = new ArrayList();

    for( int i = 0; i < 5; i++ ) {

      myList.add( double(i) );

}

}



Much more typing.



Python supports anonymous functions, and mapping operations:

myList = map(lambda x: x + x, [0, 1, 2, 3, 4])

# myList now is [0, 2, 4, 6, 8]



The "lambda x: x + x" means "make me a function that takes x and doubles it, but I don't care what it is named." Then the "map" says "take that function that I just made up and apply it to each of the items of the list '[0, 1, 2, 3, 4]' in turn." There is no Java equivalent.



I could write the sum of squares like this:

sum( map(lambda x: x * x, [1, 2, 3]) )

# this returns 1^2 + 2^2 + 3^2 = 1 + 4 + 9 = 14



As a benefit, you can use Jython (listed below) to *compile* python into Java bytecode, so anywhere that you can run Java you can write your program in python and then have it run on the Java Virtual Machine.
?
2016-04-10 07:21:52 UTC
He might be trying to say that you need to learn programming techniques and logic, rather than languages. This really is important, too. For instance, being able to hold a conversation in 15 human languages doesn't mean you can write an outstanding work of literature in any of them; and a really well written program is much like a really well written book, in that it needs to have many parts that fit together in non-obvious but effective ways.
?
2008-02-10 04:13:44 UTC
It really depends on what you want to do with the language. If you want a simpler language, go with Visual BASIC or PASCAL, but these do not offer the structure of C++ or Java. A lot of V.B. or PASCAL is GO TO statements. While it is true that C++ is more widely used, Java has great functionality, too. It is a semi-enhanced version of C++. It can also be integrated with the web. Until you know what you want to do with it, though, you rally can't answer that question.
Andy P
2008-02-08 09:49:26 UTC
I would start with VBA, ie the version of Visual Basic that is built in to Microsoft Office. I would also suggest you start in Excel. This is available in Windows and Mac versions of Office.

Why do I suggest this? Because all of the big programming languages are now Object Oriented, but if you start from scratch you will spend days creating objects, and end up wondering what the point is, as you could have achieved the same thing in minutes with a simpler programming style.



Diving in to VBA in Excel you find yourself with hundreds of different objects to manipulate, workbooks, cells, collections, ranges... You have no choice but to use object orientation. As you learn how to do simple stuff you can then create your own classes, and see how they interact with the existing classes. You get a real feel for how the individual objects go together to make up a large commercial application. Also, the Object Browser window will let you see how objects can be, to an extent, self-documenting.



Best of all, you don't need to install anything to get started. Just record a macro and then start editing it.
newton3010
2008-02-08 09:31:47 UTC
Depends on what you wnat to do...If you want to make windows applications then you can go with VB



If you wanted to do some low level programming for example creating a driver for windows or making a windows 3d game or homebrew PSP game then you want C++



if you are interested in web based client server type applications then go with Java...



if you want to just brag about it learn pascal too so you can say you know pascal....LOL



Both VB and C are used daily and C++ is the most powerful able to create any type of program but for a simple windows utility it would be alot of tedeous programming...



Hope this helps...

I been coding for agout 20 years and I started with Basic..



10 Print "Hello World"

20 End
Radcat
2008-02-08 09:27:08 UTC
I wouldn't bother with Pascal, It's a good language but the others are better. I would narrow it down to Java and C++



There are the two most used and are very versatile, It really depends on what you want to do, if you are writing a program that uses hardware a lot I would suggest C++, well actually I would suggest c or C# but they aren't on your list, if your planning a lot of applets I would go with Java.
2008-02-08 09:24:44 UTC
They are all very common at the moment (Pascal is the least common out of the four).



Visual Basic is the easiest to learn out of the four.



C++ is arguably the most widely used, but also the most complex.



Definately start with Java or VB.
2008-02-08 09:23:38 UTC
Start with VB and branch out from there...VB is pretty easy to learn, but getting it down means you will have a firm grasp on the fundamentals of programming. All OOP languages have the same elements (things like loops, forms, if..then statements, arrays..that kinda thing)...it is more imperative that you learn how to use these elements than learn the language itself. Once you get those down, you will be able to learn other languages rather quickly.
villanim
2008-02-08 09:25:44 UTC
C++ and Java would be the two I would concentrate on. Pascal is mainly a teaching language now. C# (pronounced sharp) is becoming more popular then either one, and you may want to look into that first.
localzuk
2008-02-08 09:31:24 UTC
I would personally suggest learning Java. From that you get the basis of object oriented programming and can transition quite effortlessly to C# and C++.



I would steer clear of VB unless you intend to work in a company that uses it.
2008-02-08 09:37:36 UTC
First learn programming. Programming and languages aren't the same things. (A linked list is a linked list, regardless of the language you write one in.)



Try Wirth's "Algorithms + Data Structures = Programs". The language he uses to teach programming is English.



(When you know programming, you'll be able to answer your own question better than anyone here can, since we don't know what you're planning to do.)
Xaeno
2008-02-08 09:23:24 UTC
Well, Java is definatly the best for building the most programs, but it updates so often that it makes your hair turn grey 67% faster. But by far, Java would be the best if your only learning one.
chit c
2008-02-09 08:54:51 UTC
I recommend you to start with Visual Basic. Following is a great tutorial to learn Visual Basic in your own



http://www.freetutes.com/VisualBasic
mohan k
2008-02-08 09:25:47 UTC
All the above languages have updated their versions

visual Basic became more powerfull in .Net

c++ too in .NET

Pascal outdated

java as J2EE



Best option is to learn J2EE or C# .Net
cardinals_man
2008-02-08 09:24:36 UTC
All the above except for Pascal. If i was to recommend one, I would say VB. You might want to look at C#, its better than C++
2008-02-08 09:34:02 UTC
JAVA


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...