I'm planning to switch from Java to C#, does anyone have any tips for any differences I need to watch out for? Naming conventions, things I need to implement differently, ect?
Thanks.
I'm planning to switch from Java to C#, does anyone have any tips for any differences I need to watch out for? Naming conventions, things I need to implement differently, ect?
Thanks.
Well, you'll need to learn the base class library obviously. I don't know Java that much but from memory I remember:
- All method names have a capital as their first letter.
- New: properies
- No checked exceptions
take a look at this for feature comparison: http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java
Many little differences.
I am just curious about why you are switching from Java to C#. An expert Java programmer and two expert C# programmers that I know all like C# better but all admit that Java is very capable and still widely used. When is comes to OS and hardware cross-platform implementations, it is a strong point that many believe Java is better in this way. In the business world, preference of the coder is sometimes not even a consideration in established development firms.
So, what are your reasons for switching? Perhaps we can clarify some things that you need to know by this insight given to us.
I am just curious about why you are switching from Java to C#. An expert Java programmer and two expert C# programmers that I know all like C# better but all admit that Java is very capable and still widely used. When is comes to OS and hardware cross-platform implementations, it is a strong point that many believe Java is better in this way. In the business world, preference of the coder is sometimes not even a consideration in established development firms.
So, what are your reasons for switching? Perhaps we can clarify some things that you need to know by this insight given to us.
Well, been programming in java for a while and recently been using Slick2D for programming games. I've been doing some reading really like the looks of XNA.
Another reason being that I'm a pre-college student and want to have a couple languages down before I hit the workforce. I was considering going from Java to C# or C++, I'm still kind of torn between the two languages, that's one of the reasons I made this thread. I wanted to see the differences between Java and C# so it could help me make my decision making a little easier.
Since you are doing this for the learning, obviously to prepare for a career, then I say more power to you!
Take a look at MonoGame implementation of XNA. There is a ton of things to get with it, including terrain editors and level editors.
Also look at Unity 3D, which would give you the opportunity to use any of several languages, including C#.
This is a good strategy for getting broad experience which you are taking. Long term you need to complete good projects for your portfolio
Since you are doing this for the learning, obviously to prepare for a career, then I say more power to you!
Take a look at MonoGame implementation of XNA. There is a ton of things to get with it, including terrain editors and level editors.
Also look at Unity 3D, which would give you the opportunity to use any of several languages, including C#.
This is a good strategy for getting broad experience which you are taking.
I still haven't fully decided between C# and C++ yet(I plan to learn them both eventually), but I'm slightly leaning towards C++ with either SDL or SFML. I have a few books for C++ that I picked up a while ago on sale also.
Either language would be fine, C# or C++, but you really need to look at how low you want to go. Are you serious and dedicated to learn lower level programming under the graphics, threading, sound, input, and so forth? If that is the case, then I would say C++. An intention to stay middle and high level coding for a while might give you C# as the best interim choice and you can sit on an engine like XNA/MonoGame for a while to sharpen your coding skills in preparation for that advanced lower level coding. Please don't misunderstand because any of these - Java, C#, or C++ - can be used to target a runtime and hence manipulate lower level CPU/GPU functions, but I feel that you should wait 1-2 years before you dive that deep.