C# or C++

This is a discussion on C# or C++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; C++ & C are good for games. I hear that C# has garbage collection and a whole bunch of 'code ...

  1. #16
    Xei
    Xei is offline
    Registered User Xei's Avatar
    Join Date
    May 2002
    Posts
    719
    C++ & C are good for games. I hear that C# has garbage collection and a whole bunch of 'code behind the scenes' that wastes speed for stability. It makes much more realistic sense to do it with C++ in that case, even though processors are quite fast and could handle a C# game there is no reason for wasting processing time.
    "What are you after - the vague post of the week award?" - Salem
    IPv6 Ready.
    Travel the world, meet interesting people...kill them.
    Trying to fix or change something, only guaruntees and perpetuates its existence.
    I don't know about angels, but it is fear that gives men wings.
    The problem with wanting something is the fear of losing it, or never having it. The thought makes you weak.

    E-Mail Xei

  2. #17
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    there is no reason for wasting processing time.
    On the other hand, if you aren't for the next Half Life III engine and can spare processor time, there is no reason wasting development time instead. It all comes down to which job you want to do. Action games and professional games require C++. A game that runs fine and requires a hobbyist to complete it in a reasonable amount of time can be done in C# as well if not even better.

    Although i fail to see how java's security is outdated. to this day there is still no official report of anyone breaking java's internal security
    The security itself is fine. It's the concept that is outdated. Java is based on either having a program that may run any instruction as soon as the user starts it or applets that may do virtually nothing. No matter how much the user and the developer trust each other, an applet will never be able to access the printer and a program will never be restricted to only use the printer. With the .NET concept, you can give permission sets/groups to different groups of programs, by default based on their origin. For example, you can allow all internet programs to do graphics and nothing more ( applet ), allow programs from your colleagues file share to access the printer and your D:\Jobs\ directory and your own programs to do anything.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21