whats with C?

This is a discussion on whats with C? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; With C++ and C# out now, why do people still bother to program in C? It's old and there are ...

  1. #1
    VOX
    VOX is offline
    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
    University of Waterloo
    Posts
    1,903
    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,267
    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,267
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    isnt c++ object oriented?

    c clearly isn't... natively anyways.
    Hmm

  12. #12
    C(++)(#)
    Join Date
    Jul 2004
    Posts
    309
    Quote Originally Posted by B0bDole
    isnt c++ object oriented?

    c clearly isn't... natively anyways.
    structs (I don't know what you mean by "natively")?
    To code is divine

  13. #13
    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.

  14. #14
    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}

  15. #15
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Do you hammer a nail with a screw driver? No. You could, but it wouldn't be fun.
    But think of the entertainment value for the onlookers!
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Page 1 of 2 12 LastLast
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