Learning C#  
Author Message
John Wesley Harding





PostPosted: Visual C# General, Learning C# Top

Hi, I would like to ask anyone here for their advice on where I should start with C#.

I have been programming for nearly a year now and dont know any other languages other than the VB family, such as vba, vb6 and vb.net.

Since i have been programming with .net I have learned alot from the msdn library that comes with the installation of Visual Studio, and whenever looking at the example of code I still am always drawn to read the C# code. Something is just making me want to learn this language, However a good friend of mine is trying to alter my path by suggesting I learn C++.

Learning C++ I would like to do, and also think I would benefit with the fact my friend knows the language. But may it not be a good path to learn C# then go on to C++ at a later date

I would appreciate any opinions as since I am fairly new to programming I dont have the experience of switching languages.

Thank you for your time.



Visual C#6  
 
 
RizwanSharp





PostPosted: Visual C# General, Learning C# Top

First of all dont think if you cant learn C# you'll be able to learn C++ becuase C++ is fairly a very complex language, in contrast C# is very simple and straighforward, You can buy any C# beginer's book to start with it.

When I started it, I used Begining C# by Wrox Publishers (First book I studied on C#) very simple and anybody can start C# with a little knowledge of computer and know how that What a software is and how does it Run.

I wish you all the best ;)



 
 
John Wesley Harding





PostPosted: Visual C# General, Learning C# Top

Thanks for such a rapid reply.

I think I am really set on learning C# before I move on to any other language. But in contrast do you think it would be wise to try and block my knowledge of VB.NET while trying to learn C#

As I kind of came to the conclusion that I would just get mixed up, and that it is going to be much different, therefore I would just lose myself trying to do something the way I would in VB...

Am I correct, or do you think it is the opposite for these two languages, maybe I could use VB.NET knowledge as reference Or should I start from scratch


 
 
RizwanSharp





PostPosted: Visual C# General, Learning C# Top

Dotnet provides a unified model of programming to all of its supported languages. So you dotn need to be worried about this. You'll see yourself while working in C# that all methods and classes used in C# are same as you call ones in VB.Net.

Both languages differ in Syntax only. Adding one more line to my discussion is that Application written in C# is faster than one VB.Net due to some automatic safety provided by VB.Net which Programmer has to take care in C# on his own.

So, You can go ahead with both languages remebering Systax of both in your mind.

Have a nice time ;)



 
 
John Wesley Harding





PostPosted: Visual C# General, Learning C# Top

Great! I will throw myself deep into it tonight.

However just as a last note; You say the fundementals are the same, but am I correct in thinking that some namespaces are not available in one language that are in another

For instance, I have been told C++.NEt does not allow you to use the Fileinfo namespace, but VB.NET does...


 
 
RizwanSharp





PostPosted: Visual C# General, Learning C# Top

I dont know about C++ but I think there is none which is avaialable in C# and not in VB.Net and Vise verca.

BTW, there is not Namespace with the name FileInfo rather, FileInfo is a class under System.IO namespace

Cheers ;)



 
 
John Wesley Harding





PostPosted: Visual C# General, Learning C# Top

My apologies for the namespace mistake.

Thanks so much for your information.

Maybe I will come here next time with something to contribute.


 
 
RizwanSharp





PostPosted: Visual C# General, Learning C# Top

Sure, You'll do it in near future.

Best of Luck always ;)



 
 
axshon





PostPosted: Visual C# General, Learning C# Top

When I made the switch, I was pretty hard core into VB.Net. I read an O'Reilly book on C# fundamentals in about 4 days and was immediately productive in C#. I don't remember the exact book but this is one of the latest on C# for 2005:

http://press.oreilly.com/pub/pr/1541

My recommendation is that if you already know the .net framework and you already know VB.Net, buy the smallest book you can find on C# just to get all the syntax square. There are also lots of beginner C# websites available.



 
 
OmegaMan





PostPosted: Visual C# General, Learning C# Top

As much as I love C++...I recommend you learn C#.

Also examples are some of the best way to learn...

Check out the very robust SQL project examples as found in the Starter Kits.

Also there are 101 Samples for Visual Studio 2005 which is a robust, initial development tasks to more involved tasks for winforms, web development etc which may help you in other areas.

Also out some of the VB/C# examples for the basic operations .



 
 
cablehead





PostPosted: Visual C# General, Learning C# Top

Came from the same boat. After reading hundreds of posts...."there is no difference" ...

I think you will find C# .....to be a much better experience. Including.:

..the industry seems to be heading that way; etc.

The quality of available example code is superior.

To be completely honest.....when you get above a couple of hundred lines of code..C# just looks better.

 (sorry just reread your post....Im REALLY in the same boat....C++ is calling)

 

 



 
 
cablehead





PostPosted: Visual C# General, Learning C# Top

Omega...

Why learn C# first In your opinion, what is the biggest difference



 
 
OmegaMan





PostPosted: Visual C# General, Learning C# Top

Ones goal as a programmer is to learn the pattern that all programming languages offer. I recommend C# so one can become an Object Oriented programmer, the semantics of the language are secondary. Plus one only has so much time to devote.

One can learn the OO concepts in C++ but the likely hood of you using a project either on your own or from work is diminished as time goes on.

Since we primarly program to put food on the table. You will be most likely to be employed in the future from C# and not C++. So your time spent in C# will pay more dividends than C++. 

IMHO