Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@RustyCrab @Hoss @GoodPerson @bot @iancho @kroner @neko I like to use C a lot when I can because it forces you to write very efficient code when it works, but still If I was writing something as complicated as a replacement for pleroma I would probably use C++ in there somewhere to make putting it all together easier.
Writing base library functions in pure C syntax and the main application code files in C++ is a style that seems to work for me. When I try to write a library in C++, it may start decent but always becomes a nasty mess with the various bug fixes and feature additions that occur over time warping the API into something disgusting. Likewise writing the main application code only in C as well, tends to cause it to feel like some kind of hideously entangled spiders web of functions calls, errno handling and memory alloc and frees along with other things that all have to be carefully kept track of.