C# usage

  • Thread starter Thread starter Andrew Ostry
  • Start date Start date
A

Andrew Ostry

I had many years experience in Java but I dont' know C# at all, will I
be able to pick it up in 3 days?

After a quick look in C# source code it seems to me it's very similar
to Java??

C# is almost a 1 - 1 mapping of Java??
 
I had many years experience in Java but I dont' know C# at all, will I
be able to pick it up in 3 days?

After a quick look in C# source code it seems to me it's very similar
to Java??

C# is almost a 1 - 1 mapping of Java??

Similar, yes, but let's be realistic. You won't be able to write
"professional" code after just 3 days. You can pick up the basic syntax
fairly quickly but you won't reach a "comfort zone" until much later.
There's also a lot more to learn than just language rules.
 
Andrew said:
I had many years experience in Java but I dont' know C# at all, will I
be able to pick it up in 3 days?

You should be able to pick up enough to write some small working
programs. To write really stable, maintainable code you need more knowledge.
After a quick look in C# source code it seems to me it's very similar
to Java??

Yes, there are many similarities but also a lot of differences. A lot of
the syntax is the same, so that should not present any bigger problems.
C# is almost a 1 - 1 mapping of Java??

Not at all, C# is based on C++, Pascal (Delphi) and Java.

(There was a J# which was Microsoft's .NET version of Java, but I
believe it has died out.)
 
Andrew Ostry presented the following explanation :
I had many years experience in Java but I dont' know C# at all, will I
be able to pick it up in 3 days?

After a quick look in C# source code it seems to me it's very similar
to Java??

C# is almost a 1 - 1 mapping of Java??

A point the others didn't mention (explicitly): the syntax may be
relatively easy to pick up, but for any worthwile program you also need
the .Net Framework: the class library that provides a whole lot of
support. Learning your way around in there takes some time.
See http://msdn.microsoft.com/en-us/library/ms229335.aspx

Hans Kesting
 
You'll be able to get by with C# in a day or two, yes, I did. The part that
took longer though was learning the .NET framework, which classes did what,
which namespace they are in, which assembly they are in. Then there's stuff
like IDisposable etc.

I'd recommend reading "Richters Applied .NET Framework Programming" book.
You'll mostly pick up the basic language from the examples, and it'll teach
you some more valuable stuff too.
 
Peter Morris said:
I'd recommend reading "Richters Applied .NET Framework Programming" book.
You'll mostly pick up the basic language from the examples, and it'll
teach you some more valuable stuff too.

But that book is 7 years old.
 
C# has similar syntax, but is far richer than Java. Off the top of my head,
you have delegates, events, operator overloading, properties, a preprocessor,
lambda expressions, LINQ, and value types, all of which are missing in Java.

Also, event wireups/handling is totally different in the two languages -
Java uses its own obscure inner anonymous class approach, while C# has a far
simpler direct approach.
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
VB & C# to Java
Java to VB & C#
Instant C#: VB to C#
Instant VB: C# to VB
Instant C++: VB, C#, or Java to C++
 
Back
Top