C#

topic posted Fri, October 14, 2005 - 6:04 PM by  Jon
Share/Save/Bookmark
Advertisement
Anyone here a fan of C#? I was talking to a programmer friend and he was saying that C# is going to largely replace C++ in the coming years.
posted by:
Jon
offline Jon
SF Bay Area
Advertisement
Advertisement
  • Re: C#

    Fri, October 14, 2005 - 6:37 PM
    He must be drinking the Microsoft Kool-Aid.

    C# has its place, and so does C++. They said Java would replace C++, too, not happening.. If there's a battle, it's between Java and C#.
    • Re: C#

      Tue, October 18, 2005 - 1:30 PM
      here here!!
      • Unsu...
         

        Re: C#

        Wed, October 19, 2005 - 8:43 AM
        I don't think there's much of a battle between C# and Java either (I'm mostly a java programmer myself lately). At two companies now we've done evaluations of c# and rejected it as mostly a language for play apps... nothing serious. Is this other people's impression as well, or do people actually use it for important applications?
        • Re: C#

          Sat, July 29, 2006 - 5:27 PM
          I would be interested to know what aspects of the language played into the classification of c# as a language for play apps. I wonder myself why people arent using it more for "real" applications. The main complaint that is frequently cited is the fact that the runtime is not widely pre-installed on most platforms, requiring a large pre-requisite install before an application can work. This will be changing in the near future since MS finally decided to include the runtime in an operating system ( uhh... whenever Vista ships :P ) Personally I think that Sun has seen brighter days and that the .net platform is gaining in developer mindshare. But I would like to understand the drawbacks that people see with using c#...
          • Re: C#

            Sat, July 29, 2006 - 5:50 PM

            Jason,

            The single biggest drawback to me is simple -- not all of us want to tie ourselves to one platform; it's a big world, and some people prefer (or need) to use non-MS operating systems. The project i'm working on needs to target Mac OSX (and possibly Linux in the future) and Windows XP _now_, and until the C# runtime is something that _all_ OS vendors install, it's simply not an option for a lot of things.

            What little i've done in C# makes me like it, and Windows XP is a good OS -- but it's not the only one that matters.

            Regards,

            John

            Falling You - exploring the beauty of voice and sound
            www.fallingyou.com
            • Re: C#

              Sat, July 29, 2006 - 6:03 PM
              yeah thats a huge drawback. unfortunately noone has created a managed platform that completely open. C++ has a huge advantage there. Another big problem is that although there is a standard base to the .net platform (CLR\CLI) the higher level stuff (Microsoft.blah namespace) is again platform dependant. Java seems to be on the decline and so the dream of truly portable managed code eludes the industry... money grubbers :P
    • Ge
      Ge
      offline 2

      Re: C#

      Wed, October 19, 2005 - 11:28 AM
      Yes, I agree that there are applications that can not be written in C# and C++ is the right choice.

      However, there are a lot of applications that are much easier to be written in C# because of its integration with the .NET Framework library (I'm a little skiptical about the C# language features).

      I used MFC/ATL and the .NET Framework... I sort of felt upset about the hours/days I spent learning MFC compared to the minutes I needed to write a C# app... I did not write a large production app in .NET so I can't speak for how well it scales.

      C#/Framework will replace a considerable amount of code written in C++... Maybe not the 'engine' parts, but a lot of the outer layers in a typical app (UI, etc).

      The good news is that integrating both worlds is very possible - so you get the best of each! (specially with VS2005).
  • Re: C#

    Sat, July 29, 2006 - 10:01 AM
    I'm gonna eat my words now!

    I've been working with C# 2.0 for only a few weeks, and I am addicted.

    It's going to largely replace C++ in at least *my* work in the coming years!
    • Re: C#

      Sat, July 29, 2006 - 11:45 AM
      Ive been using it exclusively for most major project for a few years. IMHO c# is the shizz. The only time I use c\c++ anymore is when I need portability or brutal speed. In complex math stuff c# cannot beat c++ (roughly 2-3x speedup on certain things) or hand-tuned assembly (Intels math library will do about 2-3x speedup over the best compiled c\c++). But for the average everyday stuff c# is fast and code is compact which to me means less BUGS. Java has many of the same features but for some reason I really cannot put my finger on I prefer using c#. Love it. :)
  • Re: C#

    Sat, July 29, 2006 - 5:11 PM

    Jon,

    I feel the same way -- C# seems to be the next C++ for a lot (though not all) things. It's also portable -- Mono, Portable.NET, .NET ... I can write C# on my preferred platform (Mac OSX) and still have it work on a Windows or other *nix box.

    That being said, the project i'm on now is all C++, because the overhead of the .NET runtime and libraries is just too high from a download-time point of view ... if you want to build something small, than can be downloaded quickly, that works on Windows, Mac OSX and other *nixes, C++ is the only choice right now.

    Regards,

    John

    Falling You - exploring the beauty of voice and sound
    www.fallingyou.com