#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Melbourne Aust.
    Posts
    1
    Rep Power
    0

    Smile Going from Java to C#


    I am probably going to get a job at a company where I will be doing C# instead of Java.

    I am really nervous about this because I LOOOVE Java.

    I am not sure if I should stay on in this Java job I have now or take this other job offer where they will train me in C#.

    What sort of Swing-equivalent thing do they have in C#? I am a bit of a Swing nut.


    - Brad

    Comments on this post

    • Gran Roguismo agrees
    Last edited by o_watkins; May 30th, 2003 at 08:36 PM.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    4
    Rep Power
    0
    On the .NET side, there's a namespace called System.Windows.Forms where most of the non-web UI library is found. There's some other usefull stuff, such as System.Drawing and System.Text, but mostly in the System.Windows.Forms.

    As to how it compares to Swing, of course it depends 99.6% on who you ask. Ask a Java coder, and it sucks. Ask a .NET coder, and it rules.

    I personally code in .NET (some Flash as well), so I'm very comfortable w/ WinForms. I'm very productive, and the .NET framework is very capable and flexible. The Visual Studio environment is well rounded and capable (and well reviewed). Debugging is outstanding.

    .NET is also supported by a fairly vast framework besides what's in System.Windows.Forms. Things like web services are simple to implement, great XML support, great database access support.

    For custom control development, there's a very usable library for native 2D graphics. The classes in the framework can be overridden as you would expect to do just about anything you can imagine, or you can write completely from scratch.

    Performance is very good, close to native C++ on the Win32 platform.

    Documentation is well integrated into the development environment and is quite complete.

    C# has the ability to declare "unsafe" code sections, so if you're in a controlled environment where you can declare elevated privs to a piece of code, you can do pointer manipulation as you can in C++. This type of thing is handy in image processing for example. (you don't want to use any object hierarchy to loop through 6,000,000 pixels one by one...)

    In addition to the native libraries, DirectX 9 now has a managed interface (the term they use for native .NET interface). Which makes it conceivable that you could write 3D apps / games in .NET. I've cracked open the DirectX 9 SDK, but need to brush up on matricies and transforms before I get anything accomplished in 3D

    All in all, if you're open to new experiences, and non-religious about platform you will certainly enjoy working with C# on the Win32 platform. It's a good language, not too far from Java or C++, but a reasonable evolution of both.

    The Framework is well rounded for an early version and you can get most everything you need done and done well. Much of it is actually very cool.

    If you're hopelessly tilted against Microsoft, you may not be able to deal with it; this would be for no technical reason but rather for philosophical ones.

    Comments on this post

    • Gran Roguismo agrees
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    6
    Rep Power
    0
    I have done a lot of work with Java and Swing and recently started working with C# and the GUI components found in the System.Window.Forms .NET library. I can safely say that adapting to C# from Java is not a problem and my personal opinion is that that building GUIs/WinForms in .NET (using Visual Studio .NET) is far more practical than using Java and Swing. I have found building WinForms to be a rapid process and they seem to run more smoothly than Swing applications. The major gripe is that WinForms only run on, you guessed it, a Windows platform. If I ever develop in Windows I go for .NET. Anything else then it would be Java. I would recommend giving the C# job a go, the more skills you get the better!

    Andrew

IMN logo majestic logo threadwatch logo seochat tools logo