C# - urgent crash course needed

Man of Honour
Joined
4 Nov 2002
Posts
15,513
Location
West Berkshire
I need to get a head start on learning to write software in C# for a project starting next week. I've done C for 20 years and C++ for 10, so I doubt I'll have much bother with the syntax - it's the groundrules - what, why and how - that I need to pick up.

So, does anyone know of a good tutorial that will get me 'up to speed' in C# programming?

Thanks for reading. :)
 
kind of difficult, theres no right way just different ways :)

also depends on the company your working for, for example my company has its own DAL which we have use, as well as inheriting base pages which are already created.

I think generally if you use good OO Design you'll be fine which ever approach you take.

Might be worth downloading an open source c# web app and looking at the source to see how things have been structured, then say to yourself could this be improved etc and just progress from there.
 
Sorry, I think you have the wrong end of the stick. This isn't for the web and we have no standards I know of (other than general coding standards that apply regardless of language). As I said - I just need the basics of writing 'good' (as in reliable, working) code, not specific coding standards. Consider that I've not seen a single line of C# code in my life - because I haven't. I can pick up all the more detailed stuff later. :)
 
well if its just the syntax you need advice with then google is your best friend. That and msdn. The msdn quickstart tutorials should give you most things you need, although a lot of it is web related.

But if your coding in vs it'll provide you with plenty of code hints
 
Writing "good, reliable code" is a skill that's more specific to paradigms than to individual languages. If you can write good code in C++/Java/Smalltalk then you can probably write good code in C#, as long as you know the different libraries and feature sets.

This may not be exactly what you want but it's quite good nonetheless:
http://www.idesign.net/idesign/download/IDesign CSharp Coding Standard.zip
 
A quick perusal of the Microsoft documents shows you're right. It's somewhere stuck in the middle between C++ and Java. :)

Thanks.
 
It's definitely closer to Java than C++, though. The only things that it has in common with C++ are the syntax and the ability to access memory directly via pointers, though this is discouraged and generally unnecessary.
 
It's definitely closer to Java than C++, though. The only things that it has in common with C++ are the syntax and the ability to access memory directly via pointers, though this is discouraged and generally unnecessary.
You think C# syntax is closer to C++ than Java? Weird.

Honestly though, forget the language differences, you'll pick that up easily. It's the .NET framework you'll really have to dive into, it's huge. As others have said, MSDN is your friend.
 
As already said if you can do C and C++ you won't have a problem with C#.

Do you use managed C++ at all? (you say you use MSDN daily already) If so the transition to C# will be pretty painless as tha main thing to learn is the .NET API really.
 
Often it's not the language that the problem - the foundation libraries and the standardised rules take time to learn.
 
Read it again carefully.
Why don't you read it again carefully.

It reads like "It's closer to Java, apart from the syntax and being able to use pointers if you really want". Why else mention the syntax separately from saying C# is closer to Java?
 
Why don't you read it again carefully.

It reads like "It's closer to Java, apart from the syntax and being able to use pointers if you really want". Why else mention the syntax separately from saying C# is closer to Java?

It's definitely closer to Java than C++, though.

Anyhow, point is the syntax for both Java,C,C++,C# all have their roots in Algol style syntax. However, semantically they are different.
 
Anyhow, point is the syntax for both Java,C,C++,C# all have their roots in Algol style syntax. However, semantically they are different.
Yes, but don't just quote the bit which agrees with you. Read the whole paragraph, then you'll see I'm right ;)
 
Back
Top Bottom