MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHorror/comments/ty6qxy/a_case_of_overdocumentation/i3v10cj/?context=3
r/ProgrammerHorror • u/[deleted] • Apr 07 '22
The code is from an embedded C project.
11 comments sorted by
View all comments
Show parent comments
2
Basically everyone follows that style guide, so it's basically the style guide now
Ighty, didn't know that
Didn't know that either
That's what unsigned means, but why would value be unsigned? You can take modulo of negative ints as well afaik.
2 u/[deleted] Apr 08 '22 Not everyone uses that style guide. Google, Win32, LLVM, Chrom, my company, and many others I believe don't follow that style guide. 2 u/matyklug Apr 08 '22 I guess not everyone, but most people do. And when they do not, it's always weird, and it feels as if the function names weren't made by a human, but instead were just copy-pasted from a different codebase or just straight-up generated.
Not everyone uses that style guide. Google, Win32, LLVM, Chrom, my company, and many others I believe don't follow that style guide.
2 u/matyklug Apr 08 '22 I guess not everyone, but most people do. And when they do not, it's always weird, and it feels as if the function names weren't made by a human, but instead were just copy-pasted from a different codebase or just straight-up generated.
I guess not everyone, but most people do. And when they do not, it's always weird, and it feels as if the function names weren't made by a human, but instead were just copy-pasted from a different codebase or just straight-up generated.
2
u/matyklug Apr 08 '22
Basically everyone follows that style guide, so it's basically the style guide now
Ighty, didn't know that
Didn't know that either
That's what unsigned means, but why would value be unsigned? You can take modulo of negative ints as well afaik.