Re:Should we stop writing functions? (C++)
by jenadine on Monday August 07, 2023 @12:21AM
(#37030095)
No, C is not better. C is much worse. C lacks basic primitives that allow programmers to do useful abstractions and let them concentrate on the business logic rather than on the low level details of every functions.
You maybe can write small program easier on C as long as you can fit everything in someone's head. And that's why all complex low level programs are written in C++ and not C. (With the Linux Kernel being an exception, because of its stupborn maintainer)
And what about the drawbacks mentioned on the article? 99% of programmers don't need to care about them. The reasons such article exists is precisely because some people love C++ and like to play with their language.
---
> If C++ is so good why does it need to be constantly updated and extended?
Uh? To adapt and evolve to a changing environment. Instead of stagnating and becoming irrelevant.
If it is so great, why is the iPhone constantly release new models? Why do every maintained software release new versions?
And that's why you should use C++ instead of C.
You maybe can write small program easier on C as long as you can fit everything in someone's head. And that's why all complex low level programs are written in C++ and not C. (With the Linux Kernel being an exception, because of its stupborn maintainer)
And what about the drawbacks mentioned on the article? 99% of programmers don't need to care about them. The reasons such article exists is precisely because some people love C++ and like to play with their language.
---
> If C++ is so good why does it need to be constantly updated and extended?
Uh? To adapt and evolve to a changing environment. Instead of stagnating and becoming irrelevant. If it is so great, why is the iPhone constantly release new models? Why do every maintained software release new versions? And that's why you should use C++ instead of C.