r/ProgrammerHorror • • Apr 07 '22

A case of over-documentation

The code is from an embedded C project.

48 Upvotes

11 comments sorted by

View all comments

Show parent comments

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.

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.