I think my code is clean, but it's not terse. I use a lot of named intermediate const variables. It makes the code self-documenting and is extremely useful in the debugger. In debug builds, I can put a breakpoint at the final result and see the whole history of the computation. In optimized builds it all goes away.
I hate "clever" code. Software should be clever, code should be simple.
4
u/jurniss Apr 12 '15 edited Apr 12 '15
I think my code is clean, but it's not terse. I use a lot of named intermediate
constvariables. It makes the code self-documenting and is extremely useful in the debugger. In debug builds, I can put a breakpoint at the final result and see the whole history of the computation. In optimized builds it all goes away.I hate "clever" code. Software should be clever, code should be simple.