3 ms·
The application I'm working on has about 8K lines of bare bones C + Win32 + some optional OpenGL currently. It probably has about 5 lines of repetitive cleanup
by jstimpfle 5y ago
The application I'm working on has about 8K lines of bare bones C + Win32 + some optional OpenGL currently. It probably has about 5 lines of repetitive cleanup code that can't be easily folded into a single place (so might benefit from RAII style cleanup). If I want to properly release even "static" resources so the app can be used as a library (which is not necessary), that number might grow to 20 lines.
It's not something I'm sweating about, and I'm happy about all the time I saved by not doing "proper" RAII design prematurely, which has more ramifications and constraints than one might think.