Re:Important PostgreSQL 14 update to avoid silent corruption...
by SonOfLilit on Thursday June 09, 2022 @09:02PM
(#31688813)
Large C codebases _have_ to be exceptionally nice, or they immediately collapse under their own weight. As a dev team, the language teaches you this the hard way. I've never seen a terrible huge C codebase (but have seen many in other languages).
[ Parent
| on HN ]
Re:Important PostgreSQL 14 update to avoid silent corruption...
by bigiain on Friday June 10, 2022 @12:02AM
(#31689881)
> I've never seen a terrible huge C codebase
I have 100% confidence they exist. They just don't get uploaded to Github out of shame or embarrasment.
Re:Important PostgreSQL 14 update to avoid silent corruption...
by obudo on Friday June 10, 2022 @05:03AM
(#31691716)
Can confirm they do. I worked at a company that was producing control systems for electric engines. Great environment and fun job but the code was beyond redemption. 15k line files with 2k+ lines #ifdef statements that ran different code for different customers, some variable names were just curses against pushy clients, not a single abstraction in sight.
Not only they exist, they power massive machines that could crush a person in the blink of an eye.
Re:Important PostgreSQL 14 update to avoid silent corruption...
by urthor on Friday June 10, 2022 @07:42AM
(#31692692)
I think OP just found a really well done C file.
You can definitely see many famous projects on GitHub, where even though the code is logical, you can't help feel it's a bit all over the place.
cpython isn't all sun and roses.
A broad generalization, but with C and C++ I'd say the standards for "good code" have dramatically risen in the last 10 years.
Variable names seem to have doubled in size.
Re:Important PostgreSQL 14 update to avoid silent corruption...
by e12e on Friday June 10, 2022 @09:01AM
(#31693468)
> I've never seen a terrible huge C codebase
libssl/openssl (before the rewrite/fixes especially)? Maybe doesn't qualify as huge?
See eg: https://www.youtube.com/watch?v=GnBbhXBDmwU "LibreSSL with Bob Beck" (the first 30 days)
Re:Important PostgreSQL 14 update to avoid silent corruption...
by fathyb on Friday June 10, 2022 @12:14AM
(#31689957)
Proprietary device drivers come to mind..
Re:Important PostgreSQL 14 update to avoid silent corruption...
by SonOfLilit on Friday June 10, 2022 @04:15AM
(#31691403)
They don't tend to be huge && in C
Re:Important PostgreSQL 14 update to avoid silent corruption...
by ventuspilot on Friday June 10, 2022 @06:29AM
(#31692188)
AMD's linux graphics driver has entered the chat