View Single Post
Old 10-31-2009, 11:24 AM   #5 (permalink)
hawkal
Senior Member
 
Join Date: Aug 2007
Posts: 298
hawkal is on a distinguished road
Default

Quote:
Originally Posted by klystr0n View Post
Best way to learn is by actually coding, not by reading some book.

Ideally you should start from C and then move to C#. C is a more fundamental language and will give you better depth. C# helps in developing quick tools but the grounding that C gives is invaluable.
While I agree that C is a more fundamental language. I do not think learning C would be effectively beneficial to learn C#.

C# is an object orientated language similar to Java. C is not object orientated and while you could learn some programming principals from learning C it still wouldn't justify learning it when you could dive right into C#. As I said before C# is similar to Java, and Java is often taught as a first language to computer science students.

Examples
Code:
// Hello World in Microsoft C# ("C-Sharp").

using System;

class HelloWorld{
    public static int Main(String[] args){
        Console.WriteLine("Hello, World!");
        return 0;
    }
}
Code:
// Hello World in Java

class HelloWorld {
  static public void main( String args[] ) {
    System.out.println( "Hello World!" );
  }
}
So if I were you I would just get a good C# book because books don't need to be turned on to be read, books are more user friendly, books are easier on the eyes, and they make it easier to learn because you don't have to keep switching windows reading from a tutorial then applying it in your code editor.

Then just dive right in.

Also look for some good C# source code and just read through it. There is no better way to learn than by example as long as the example is of a good standard and follows all guide lines. If you don't understand something look it up. Change things in someone elses code and see how it affects the program.

Last edited by hawkal; 10-31-2009 at 11:31 AM.
hawkal is offline   Reply With Quote