Thread: whats with C?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Deleting... VOX's Avatar
    Join Date
    Oct 2004
    Location
    VA
    Posts
    94

    whats with C?

    With C++ and C# out now, why do people still bother to program in C? It's old and there are newer, better languages out now. C is also difficult to deal with on really large programs.
    Boy you stink, go take a shower before you continue to code. Better do your laundry and spray your chair too.

    The one and only resource for finding information.

    Next version of windows released!!!!

  2. #2
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    >C is also difficult to deal with on really large programs.

    What about small programs?
    Hmm

  3. #3
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    Because it can be fun, that's why I use it every now and then. Still, I prefer C++ and C# over it though.
    To code is divine

  4. #4
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Because there's still a LOT of software out there written in C, and I bet you if you have to work at a company that maintains old software, you'll be working a lot with C.

  5. #5
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    because some of us like to use the right tool for the job, and some people work on embedded systems... and it works fine for large programs... and its not C thats hard to deal with... its proper design.

    i love C, its small and compact, minimalistic... lets you do what you want how you want. best language going.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  6. #6
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Well.. if C's the best language.. why don't all people just use C++? If C code compiles on any C++ compiler..
    what does signature stand for?

  7. #7
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    thats just like my opinion man...

    >If C code compiles on any C++ compiler..

    it doesnt... try compiling C99 on a C++ compiler...
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    > If C code compiles on any C++ compiler..
    Except there's a lot of perfectly valid C which either doesn't compile at all on a C++ compiler, or compiles but gives different answers.

    // valid C, doesn't compile in C++
    int class;

    // different answers
    printf( "%lu\n", (unsigned long)sizeof('a') );

    Here's a list
    http://david.tribble.com/text/cdiffs.htm
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    umm.. right.. so why don't people just forget C and start programming all on C++? if it's much better and has the same features as C does?
    what does signature stand for?

  10. #10
    I like code Rouss's Avatar
    Join Date
    Apr 2004
    Posts
    131
    Quote Originally Posted by Ruski
    umm.. right.. so why don't people just forget C and start programming all on C++? if it's much better and has the same features as C does?
    That's just an opinion though. I like C better than C++. That doesn't make C better than C++. Sometimes I like programming in python instead of C, but that doesn't make python any better. You can't really say any language is better than another. Like most people have already said, it depends on what you are trying to do that determines which tool is best for that situation.

    And C is not dead just because there are new languages that have names that start with the letter C. A lot of programs are still programmed in C. Look at Gnome and some (if not most) of its programs are written in C.

  11. #11
    Registered User
    Join Date
    Jul 2003
    Posts
    110
    Quote Originally Posted by Ruski
    umm.. right.. so why don't people just forget C and start programming all on C++? if it's much better and has the same features as C does?
    Personally, it has nothing to do with features, and everything to do with availability and choices. In my universe, C++ compilers are rare. Good, reliable C++ compilers are even more rare. I'm not even talking about tools either, just compilers. BTW, I don't write desktop or web applications, and my programs are less than 20 source files on average.

    I have a small, easily portable RTOS kernel written in C, and a wealth of code for common components that is all written in C. So, it might be better, but it isn't necessary for me to be productive.

    Like I said, that's just me.

  12. #12
    Climber spoon_'s Avatar
    Join Date
    Jun 2002
    Location
    ATL
    Posts
    182
    Wow, I don't even post here much any more and I can remember this topic being posted at least once a month years ago.

    Honestly, what kind of responses did you expect to get here?

    It's not that C is better or worse. You, as a programmer, should pick the right tool for the job. Do you hammer a nail with a screw driver? No. You could, but it wouldn't be fun.
    Last edited by spoon_; 06-23-2005 at 05:11 PM.
    {RTFM, KISS}

  13. #13
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Quote Originally Posted by whoie
    Personally, it has nothing to do with features, and everything to do with availability and choices. In my universe, C++ compilers are rare. Good, reliable C++ compilers are even more rare. I'm not even talking about tools either, just compilers. BTW, I don't write desktop or web applications, and my programs are less than 20 source files on average.

    I have a small, easily portable RTOS kernel written in C, and a wealth of code for common components that is all written in C. So, it might be better, but it isn't necessary for me to be productive.

    Like I said, that's just me.
    C++ compilers aren't rare.. Even in the place wher I live they aren't rare.. as long as you have access to the internet you can get any free compiler.. There was a list somewhere.. faq or maybe search.. Dev-C++ isn't a bad choice.. I use it myself.. Anything that I compile in visual C++ 6.0 and metrowerks codewarrior 8 can compile and run in dev c++ as long as I have the dlls
    what does signature stand for?

  14. #14
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Quote Originally Posted by Ruski
    C++ compilers aren't rare.. Even in the place wher I live they aren't rare.. as long as you have access to the internet you can get any free compiler.. There was a list somewhere.. faq or maybe search.. Dev-C++ isn't a bad choice.. I use it myself.. Anything that I compile in visual C++ 6.0 and metrowerks codewarrior 8 can compile and run in dev c++ as long as I have the dlls
    Congratulations, you completely missed the point. And the point is that not everyone has the same setup as you, and there are a lot of systems that simply will not support a C++ compiler. Even those that do may not support a good C++ compiler.
    My best code is written with the delete key.

  15. #15
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Quote Originally Posted by Ruski
    umm.. right.. so why don't people just forget C and start programming all on C++? if it's much better and has the same features as C does?
    Here's an example: the FAA will not certify anything for flight that is running code that was written in C++, as the flow of the program is inherently not as deterministic as the flow of a C program. C code, however, can be certified. There's a multi-billion dollar a year reason to use C.
    Away.

Popular pages Recent additions subscribe to a feed