beginning programming

Discussion in 'Programmer's Corner' started by Harrie, Jun 1, 2011.

  1. Harrie

    Thread Starter New Member

    Apr 20, 2010
    6
    0
    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.
     
  2. DumboFixer

    Active Member

    Feb 10, 2009
    219
    34
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    are you a total beginner, or do you have some experience? Do you have c++ compiler on your computer?
     
  4. rapidcoder

    Member

    Jan 16, 2011
    37
    3
    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:

    Code ( (Unknown Language)):
    1.  
    2. print("Hello")
    3.  
    A hello world program in Scala:
    Code ( (Unknown Language)):
    1.  
    2. println("Hello")
    3.  
    A hello world program in C++:
    Code ( (Unknown Language)):
    1.  
    2. #include <iostream>
    3. int main(int argc, const char* argv[]) {
    4.   cout << "hello\n";
    5. }
    6.  
    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: Jun 1, 2011
  5. Harrie

    Thread Starter New Member

    Apr 20, 2010
    6
    0
    I'm a total beginner and don't have a compiler yet. thanks
     
  6. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    Download one of the free visual express programs from microsoft like C# or C++.
    It took me a while to get into C# with a windows interface but got there eventually and wrote a pcb design program with it.
     
Loading...