News for hackers. Stuff that matters.
Re:Migrating Dropbox from Nginx to Envoy by euroelessar on Thursday July 30, 2020 @08:58PM (#24004569)
There are many reasons which lead to a cleaner codebase, some of them are: RAII, smart pointers, constant types, reusable containers, standard algorithms library, cleaner way to define interfaces, etc.

Overall our experience is that C++ code is smaller, simpler to write/read, and has a smaller chance of mistakes than equivalent logic written in C.

Of course many of this points are relevant only for relatively modern C++ (c++11/c++14 or newer), before that the cost/benefit ratio was much less clear.

Re:Migrating Dropbox from Nginx to Envoy by ci5er on Thursday July 30, 2020 @09:03PM (#24004592)
Fair enough. Thank you.

In my case - C (as a language) had a smaller footprint, and if the targets were limited, it was easier to learn, to lint and to code-inspect.

Admittedly, this was mostly before C++14. I guess this might be a case of "once bitten, twice shy".

Thank you.