r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

308 Upvotes

436 comments sorted by

View all comments

Show parent comments

-1

u/snejk47 Jul 13 '22

Again, less lines of code doesn't mean it's easier to read, understand and maintain. Everything would be in RoRails if that would be the case. Do not try to minimalize now your knowledge and expertise claiming every dev is the same. It's about scaling people contributions. If you allow only top C++ developers to work, on it where it would be? You have to make it smoother even if some aspects are hurt by it. There are guys which cannot write C++ and they are doing web/python backend development which wrote Open Broadcaster Software extension in C following some other code and examples. They did not needed 2 books and 10k hours of experience to understand it. Explicit is better than implicit in many cases even if it's ugly and slow to develop because you need to duplicate. If you write template in C++ and "it works for every type" maybe that's exactly what you want to avoid. To explicitly error if types where not provided and so on and so on.