3 ms·
Yes I hope all the old C code will be replaced. There might be some awesome C developers on the planet, no doubt. But most legacy, last millennium C code was w
by Cryptonic 5y ago
Yes I hope all the old C code will be replaced.
There might be some awesome C developers on the planet, no doubt. But most legacy, last millennium C code was written by ordinary guys, with no internet, stack overflow and code reviews. The last "experts" (only guys who understand it and can change things) who were writing it, will soon retire and then nobody can add major features anymore or it will take forever plus fluctuation suddenly raises (of course 0 unit testing was done, variable names at max 10 characters long, 6000 lines per file and sometimes function, at least 100 mutable global variables with undecipherable short names, raw pointer magic everywhere, and 3 times as many mutex locking as needed - just to be sure no data races happen, programs crashing on teardown, because of all the lifetime issues, etc.).
I hope more and more companies choose Rust for such ports in 2029. The ports to C++ from the last decade were mostly done by C++ devs with C practices mentioned above (sometimes the same guys while learning C with classes style), making it worse ("Singleton lets me program like C, pretending I'm doing OOP yay"). I've seen so much of this stuff that I lost a bit of my trust in technology, at least in certain areas like automotive and embedded devices with lots of generations. And I know there are a lot of awesome C and C++ programmers also. But sadly not in these generations of legacy code I had the honor to work with. And this stuff is waiting to be rewritten for sure. But please not in C, now that mankind has Rust (yes fanboy here, but you can rewrite it in Go too and I'm fine with it, heck use JavaScript... but please get rid of these legacy C codebases).