4 ms·
I think that the way K&R writes C is probably idiomatic C just de facto. But it's also reasonable to believe this style is completely unacceptable for maintaina
by tialaramex 4y ago
I think that the way K&R writes C is probably idiomatic C just de facto. But it's also reasonable to believe this style is completely unacceptable for maintainable code today and should fail review for example.
So, it's not crazy to argue that because idiomatic C isn't acceptable therefore rule out C as a language for an organisation to use entirely. Clearly if you don't have an alternative this highlights a problem rather than itself being a solution. But it might be a reason not to do whatever it was you were thinking of doing at all. Do you really need to write micro-controller firmware for your project? Isn't there an off-the-shelf component where it's not your problem to maintain the horrible C code that makes it work?
[ Or you could go all Oxide Computer Company and decide no, C is just terrible so we are going to use Rust and if we need to rewrite the firmware on this switch that's what we'll do. That might make total sense, if you go into it clear eyed ]