beginning programming

Thread Starter

Harrie

Joined Apr 20, 2010
6
Hey! I just got interest in programing and I will like to learn either java or c++. I need a beginner's help and material guide or good books needed to start with.
 

rapidcoder

Joined Jan 16, 2011
37
Don't start with C++. It is an extremely bad language as a first programming language.
Here is why: http://yosefk.com/c++fqa/

Good languages to start with are Python or Scala - they are much more programmer friendly and more powerful languages. And you can play in the interactive shell with them to immediately see how things work.

For example a hello world program in Python:

Rich (BB code):
print("Hello")
A hello world program in Scala:
Rich (BB code):
println("Hello")
A hello world program in C++:
Rich (BB code):
#include <iostream>
int main(int argc, const char* argv[]) {
  cout << "hello\n";
}
It is enough to write the first two snippets of code right into the shell (REPL).
For the C++ code to work you have to write it down in a file, compile, link and then you can run it (see how much time wasted?). C++ programs are usually 3-10x longer than Python ones and 3 to 20x longer than Scala ones.
 
Last edited:
Top