OG was right all along
-
Greg Utas wrote:
What happened to the original author?! That should have been job security! If I inherited that code, I'd have him renditioned and put under bright lights until that code got explained.
Dead men don't tell tales ... He retired then died a week later.
I actually wondered if that might be the explanation. :rose: My guess is that code evolved many times, with no one having the inclination to restructure it.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
At least I think I'm referring to OG. I vaguely recall defending the K&R indentation style with OG pointing me why he thought Allman to be better. A handful of years later and several projects where Allman style was mandated by coding rules it actually became my new indentation style, mostly for the reasons OG pointed to me (easier to see the nesting level of constructs, better block separation, easier manipulation of the condition statement regardless of the operation done in the block).
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
For me the only style is the "one true brace style" Allman makes sense for non-braced languages, though (like python).