I actually find that surprisingly readable, probably because of the indent size which clearly allows the eye to see the blocks - and the size of my very large monitor - but this code seems to indicate a religious dogma about avoiding early returns, which would otherwise straighten it up.
Refactoring it effectively needs some sort of scope guard, too, to run `pfd->Release();` and the like. It's just as much dogma to write C++ like C, avoiding RAII.
Re:The Shapes of Code
by reilly3000 on Tuesday January 28, 2020 @02:43AM
(#22167260)
wow.
https://docs.microsoft.com/en-us/previous-versions/windows/d...
Apparently 13 different indentation levels is good.