Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learn C# now or finish up with Java and then learn C#? [closed]

Tags:

java

c#

.net

Ok here is my situation. I've studied Java in my college for 2 semesters. But you know they teach you jack in there, just the basics. We skipped half of our textbook and even then our professors don't teach from section to section of each chapter. I don't blame them. It's hard as it is for new students to understand even the basic concepts of programming. Now this is a community college we are talking about and not Stanford, MIT or Berkeley.

So like I said I've done 2 semester of Java. I really like our textbook because it has some challenging projects to do at the end of each chapter. This textbook is pretty clear and i have no problem understanding it (although 2-D and 3-D Arrays have given me some trouble). I have tried reading a few C# books such as Pro C# 2008 and .NET 3.5 and C# 4.0 in a Nutshell. I found these books to be dry and overloaded with information that put me to sleep (No offense to the authors of those 2 wonderful, according to amazon ratings, books).

Would you suggest I finish my Java textbook, brush up my knowledge of Arrays, Polymorphism, and etc that are universal to most programming languages. And then switch to C#, plus the syntax is very similar so it should be easy to switch. Or should I just start learning C# right now from the very beginning? If it's the latter then could you recommend some free online resources that will keep me engaged and at the same time teach me everything I need to know about C#.

Someone has recommended me to learn .NET first, but I found it to be not the brightest idea. .NET is just a big monster full of libraries. How am I going to apply it if I don't even know the C# or VB!? Anyway back to my question: Master Java and switch to C# or just go with C#?

DISCLAIMER: I don't want to start .NET vs J2EE or C# vs Java flame war. I am going with C#. I've decided that I want to work in a Microsoft shop in the future. .NET is what I want to learn.

Thanks! Will be waiting for the answers.

like image 697
Sahat Yalkabov Avatar asked Jun 03 '10 02:06

Sahat Yalkabov


4 Answers

I found myself in pretty much the same situation as yourself whilst studying Java at community college - I am smiling right now :). That was 10 years ago and D flat, as some wags were calling it, was starting to make some noises.

What I did, was do all of my assignments in both C# and Java, so that I could get to grips with both. I then begged to do my final year project in C#, which they eventually relented on. Getting practice in a couple of languages and doing a major project will stand you in good stead.

I have never looked back. Good luck! :)

like image 170
Tim Lloyd Avatar answered Oct 05 '22 03:10

Tim Lloyd


Both Java and C# concepts and syntax are very similar.

I would concentrate on the one you expect to use after completing your studies. Look at which is asked for more often in the area you are intending to work.

As a side note, C# 4.0 in a Nutshell is an excellent book both for learning and reference. Suggest you give it another go.

like image 29
Mitch Wheat Avatar answered Oct 05 '22 03:10

Mitch Wheat


I think I found the answer to your question...in your question.

For now, go ahead and finish your Java book as a way of continuing to learn the fundamentals of OOP.

Next (or while finishing the Java book), shift your focus to C# and the .NET framework (in most business situations, you'll be hard-pressed to find one without the other).

If you want to focus more on language elements of C# rather than a specific framework (such as ASP.NET, Silverlight, Windows Forms, or WPF, to name a few things), you might consider a book on LINQ, such as LINQ in Action from Manning Press. Combine your knowledge of LINQ with trying to solve some problems at http://projecteuler.net and you should start picking up the language pretty quickly.

Personally, I read Illustrated C# 2008 by Daniel Solis. Granted, it's not a textbook filled with lots of fun and challenging examples, but it is a good exposition of the language.

like image 26
Ben McCormack Avatar answered Oct 05 '22 01:10

Ben McCormack


Don't worry so much about any particular language, and "Teach yourself programming in 10 years": http://norvig.com/21-days.html

like image 37
allenporter Avatar answered Oct 05 '22 03:10

allenporter