C# Vs. C/C++

Discussion in 'Programming' started by sid.cser, Dec 22, 2010.

  1. #1
    Hi all,

    Greeting for the day!

    as we all know C# mostly used for web programming and C/C++ for desktop programming. Even Microsoft has used C++ for its Window mobile 7 os.
    Why didn't they use C# for that.
     
    sid.cser, Dec 22, 2010 IP
  2. haa

    haa Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you mean C#.NET, and no it is not even close to the mostly used web programming platform. C#.NET is not a suitable language for operating systems; it's a hybrid language. C++ is more mature, much much faster, and it gives you access to both high and low lever features.
     
    haa, Dec 23, 2010 IP
  3. getbestproduct

    getbestproduct Peon

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    c# program need framework,Its not a good idea to let your customer install framework to run your program
     
    getbestproduct, Dec 23, 2010 IP
  4. Malatya

    Malatya Active Member

    Messages:
    710
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #4
    All you right but you do not focus another important point. C# is easy, C/C++ is hard. Anyway, i love java2ee :)
     
    Malatya, Dec 24, 2010 IP
  5. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #5
    C# is far less used than C/C++ and C# is far less used on the web than many other languages. You're only reading Microsoft advertising.

    You can't make an operating system with C# because, initially, it's a slower, interpreted language; but, even then, it's too slow to do OS things which C excels at.
     
    drhowarddrfine, Dec 24, 2010 IP
  6. Cozmic

    Cozmic Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #6
    There are a lot of different languages and they are all built to do their own thing. C# / Java are higher level languages which are best for building applications. C(++) is a low level language that can talk to the hardware itself, thus allowing for extra functionality. However, higher level languages tend to be far easier. Many professionals learn a variety of programming languages to apply to whatever problem they have to deal with. I'm sure the Microsoft engineers who coded windows mobile 7 know both C# and C++, but C++ is a language which is better suited for operating system development, which is very low level.
     
    Cozmic, Dec 25, 2010 IP
  7. LoganMason

    LoganMason Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well, basically because C#.NET is too slow. It is an "interpreted language" as opposed to a "native language".

    And programs written in interpreted languages are not converted to machine code at compile time. And thus need "interpreting" each time they are run. Hence the .NET platform/framework that you have to download for .NET programs to work. This inadvertently makes C# .NET programs much slower than C++.
     
    LoganMason, Dec 27, 2010 IP
  8. Cav

    Cav Greenhorn

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    So what? Every PC with Windows installed has at least .NET 2.0. Most of them have 3.5. Not a big issue.
     
    Cav, Jan 2, 2011 IP
  9. MyNameIs940

    MyNameIs940 Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #9
    You sir, are wrong. Where did you hear that?
     
    MyNameIs940, Jan 4, 2011 IP
  10. speedshuttle

    speedshuttle Greenhorn

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #10
    I beleive that C# is more used for desktop than web programming, although comparing to C++, C# definetly is used more for web programming.
    You use C++ when you need to implement oprimal and fast algorythms, platform dependent, drivers and stuff like that
    C# requires .NET platform to be installed. Therefore, its slower and platform dependent to be used for implementation of speed OS.
     
    speedshuttle, Jan 4, 2011 IP
  11. Icecold153

    Icecold153 Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    C++ is harder to learn and faster in execution than C#.
     
    Icecold153, Jan 14, 2011 IP
  12. loog12us

    loog12us Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    right , many people are still on xp and its really a pain to install 3.5 framework due to its large size.
     
    loog12us, Jan 15, 2011 IP