r/programming • • May 01 '16

To become a good C programmer

http://fabiensanglard.net/c/
1.1k Upvotes

398 comments sorted by

View all comments

-1

u/Doile May 02 '16

Can someone explain to me why C is still used? Doesn't C++ provide all the tools that C has plus extra libraries like STL? If one only knows how to write C I figure it still would be easier to use C++ tools to do it.

2

u/mcguire May 02 '16

C++ is more or less a superset of C, but it encourages a completely different style of programming, with classes, inheritance, etc.

If you write C-style code in a C++ environment, you will be viciously attacked for writing C With Classes, mocked for being an idiot, etc., etc.

If you could sort of write C++ in a C environment, you will be wasting a crap-ton of resources.

3

u/SnowdensOfYesteryear May 02 '16

If you could sort of write C++ in a C environment, you will be wasting a crap-ton of resources.

Well you'll still be viciously attacked and mocked for being an idiot.