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.
Printable View
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.
>C is also difficult to deal with on really large programs.
What about small programs?
Because it can be fun, that's why I use it every now and then. Still, I prefer C++ and C# over it though.
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.
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.
Well.. if C's the best language.. why don't all people just use C++? If C code compiles on any C++ compiler..
thats just like my opinion man...
>If C code compiles on any C++ compiler..
it doesnt... try compiling C99 on a C++ compiler...
> 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
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.Quote:
Originally Posted by Ruski
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.
isnt c++ object oriented?
c clearly isn't... natively anyways.
structs (I don't know what you mean by "natively")?Quote:
Originally Posted by B0bDole
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.Quote:
Originally Posted by Ruski
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.
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.
But think of the entertainment value for the onlookers!Quote:
Do you hammer a nail with a screw driver? No. You could, but it wouldn't be fun.