Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Tom's Hardware > Forum > Applications > Programming > Best non-classroom way to learn to program?

Best non-classroom way to learn to program?

Forum Applications : Programming Best non-classroom way to learn to program?

Word :    Username :           
 

Hey, guys and/or girls, I need to know the best and most efficient way to learn C++, Java, or Python.
I've always wanted to learn to program and I almost have no experience with any language aside from some "tutorials" I've been reading which haven't really been doing too well. If you could give me some links or anything, I would much appreciate it, Thanks!!

Reply to jereack
Register or log in to remove.

For Java, go and install Eclipse.

Search the web for sample programs. This seems like an ok start. Oracle have some of the concepts here.

Alternatively just pick up a Java basics book or find a pdf version online. However it's better to read and try what they are saying than just reading.

Reply to Rusting In Peace

I would go with C++, it is a bit harder to learn, but once you learn it, you can do anything and everything with it. Also switching to another language and/or platform will be easy.

http://www.cplusplus.com/doc/tutorial/

Reply to theDanijel

Hello world in the three different languages...

 

Python:

 

#!/usr/bin/env python
print "Hello, World!"

 


Java:

 

class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!" );
} }

 

public static void main(String[] args);

 


C++:

 

#include <iostream>
using namespace std;

 

int main ()
{
cout << "Hello World!";
return 0;
}


Message edited by totalknowledge on 02-03-2012 at 01:58:48 PM
Reply to totalknowledge

BASIC:

 

10 PRINT "Hello World!"

 

Doesn't necessarily mean it's the best language to learn.


Message edited by Ijack on 02-03-2012 at 02:03:17 PM
Reply to Ijack

Yes, and no...

Basic is a perfectly acceptable first language depending upon your needs. If your goal is to learn a modern object oriented programming language, then no, basic is not the right choice. However there is something to be said for simplicity as your first language. If not we would all be learning assembler, forth, or machine language as our first language.

I personally think that learning Java, or C++ as a first language sets the learner up for a hard time. They are both object oriented languages but they are heavily influenced by functional programming. Ruby, Python, Smalltalk and others like them have greater emphasis on object oriented design and implementation. The higher level languages also take some of the grunt work out of programming. You have less syntax to learn, and can focus more on the fundamentals of programming.

If the ultimate goal is to program for the web, then a programming language such as Ruby, Python, Javascript or Java would be more appropriate. If they are wanting to program for desktop application then C++, Python or VisualBasic might be the best way to go.

The reason I suggested Python is that it is easy to learn, its very object oriented, it is well suited to the web, or as a desktop language, and it has lots of Monty Python references in the documentation.

Actually Ruby fits a lot of those criteria as well, but he specifically mentioned python in his first post.

Reply to totalknowledge

Aren't things starting to be more geared towards C# and VB? that is where i was told to start...but Java is probably right up there.

Or I know not what I'm talking about :)

Reply to ejb222

Java or C# are both good languages, and both similar enough that you could learn one and pick up the other without too much relearning. VB.NET (I assume you don't mean VB 6.0 or VBA) is much too wordy a language IMO. You will learn the same .NET framework in both VB.Net and C#, but the latter will be better on a resume/CV, since more software is developed in C#. Learning both is better still.


Message edited by randoMIZER on 03-03-2012 at 02:23:58 AM
Reply to randoMIZER
Register or log in to remove.
Tom's Hardware > Forum > Applications > Programming > Best non-classroom way to learn to program?
Go to:

There are 494 identified and unidentified users. To see the list of identified users, Click here.

  • Ask the community now
  • Publish
Ad
Latest best answer
US
By oldmangamer_73, 92 days ago:

Of course it's possible. I believe you must be US citizen though. I would begin a...

They won a badge
Join us in greeting them