4 ms·
I'm confused, this is just counting starting braces no?
by ludamad 11y ago
I'm confused, this is just counting starting braces no?
- Cpoll 11y agoI think the idea is that Linux has two orders of magnitude more loops, so one order of magnitude more 4-level-indentations is actually an improvement over Git's code, by ratio. It's not as if Torvalds wrote the entire codebase by himself, anyway.
- paulddraper 11y ago? Git and linux were both written (originally) by Torvalds. And both use a fair amount of deep indentation.
- bpchaps 11y agoRight. I wasn't really commenting on whether git/linux were coded "correctly" in either case, just that it's not a very helpful metric for the larger conversation.
- paulddraper 11y agoFair enough. And my (flippant) comment was on two very large, very successful projects written predominantly in C with thousands of contributors. Whether >3 level of indentation is "good", IDK. But it happens a lot. And I'm a practical man.