Thread: Quickly learn C# for a C++ expert

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    80

    Quickly learn C# for a C++ expert

    Hey everyone. I just started a new job, and it's essential that I learn C# very quickly! (this weekend). I'm a solid C/C++ programmer, and have some Java experience. I was wondering if anyone can direct me to a site / tutorial that is aimed at people in my situation: needing to learn C# quickly, perhaps via a discussion of differences from C++, etc. I took a look at some of the links in the Sticky, but they all seemed aimed at either complete programming newbies, or somewhat advanced C# programmers.

    Thanks!
    Andrew

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    "The C# Programming Language" by Hejlsberg, Wiltamuth and Golde. It's a concise introduction and reference that can get you on your feet. In my experience, if you need to learn a language quickly then web sites and tutorials will be disappointing.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    80
    Thanks, I'll look into that.

  4. #4
    Registered User
    Join Date
    Dec 2003
    Posts
    18

    C#

    I am a fairly experienced C++ programmer also, and am making the change from C++ to C#. If you know VB.NET, then you are set. C# is set up like VB.NET, with C++ syntax. If you do not know VB.NET, then there is still hope. If I were you, I would look into how to efficiently set up projects. Make your namespaces useful and make sure you can reuse them. They only "barrier to entry" I had was setting up projects properly. Other than that, the code is the same. Just remember, you do not have as much control with C# if you want your code to be "safe". I bought ASP.NET unleashed and C# unleashed. Both books are good - just depends on if your project is web based or not. If you need a lot on XML, these book are not good, and I don't have any good sources for you there. If you have any specific questions, I'll do my best to help you out.

    Khelder

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    80
    Thanks, that is good information. I don't know anything about VB.NET. Unfortunatly, I know almost nothing about .NET in general. I've programmed in Visual C++ .NET, but it was mostly for the editor. =) Until this job I've been mostly a *nix programmer... Any advice?

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    If you know C++ well and a bit of Java, all you need to know is the syntax, which might vary by a letter or capitalization sometimes. You already know everything you need, you just need to realize it

    Online tutorials might not be the best bet, try one of the mentioned books. You will see that C# is very well structured and pretty easy once you give in to the concept of naming things after what they actually do No more cryptic stuff to remember. No more strcmp.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  7. #7
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Someone at school just bought two C# books. Although I already know C#, I took a look at them and they're pretty good. This is the main book. The second book is a little more advanced and is under the "Better Together" section. This link shows you "C# for Java Developers" starting at $1.75 for a new book.

    I highly recommend you going to the book store and paging through the C# books. Its the best way. Buy online only if you can't make it there.

    http://www.amazon.com/exec/obidos/tg...glance&s=books

  8. #8
    Registered User
    Join Date
    Dec 2003
    Posts
    18

    .net

    BigDaddy...when I learned, I had to make an application in .NET with no .NET experience. I just jumped into it, and it is not too bad. All controls are drag and drop, and it is very structured. The coding will not be a barrier for you. Just start playing with the interface.

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    80
    Thanks guys! I have the rest of today to get proficient in this! After a whole bunch of reading yesterday, I'm pretty sure I understand the language. It really is very similiar to Java, with a few nice new features. I'm going to purchase a book during the week sometime, so today I must still learn from online resources!

    Khelder (or anyone else!) Any recommendations for some example .NET apps that I can work through today?

    Thanks again!

  10. #10
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    If you are already proficient with C++ and Java, just check out the C# Language Specifications and the Class Library and you are good to go.
    My Website

    "Circular logic is good because it is."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how long to learn c programming
    By cmay in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 05-13-2009, 12:55 AM
  2. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM
  3. which language should I learn
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 03-07-2002, 06:26 PM
  4. WHATS UP YALL....i want to learn
    By Unregistered in forum Game Programming
    Replies: 2
    Last Post: 02-23-2002, 04:20 PM
  5. Learn Win32 API or C++Builder?
    By Flucas in forum Windows Programming
    Replies: 1
    Last Post: 10-18-2001, 01:49 AM