2 ms·
Oh dear. I've done just about everything on this page... I never hide data. All structs with all public members. Even if I write an API around that, I can stil
by krapp 9y ago
Oh dear. I've done just about everything on this page...
I never hide data. All structs with all public members. Even if I write an API around that, I can still just access everything directly if I want to.
When I use raw pointers, I usually don't check for nullptr.
I abuse unions and their initial members and don't bother checking tags even if I tag them.
Does it compile? Good. Does it run? Good. If I leave it running does it eat all my RAM? No? it's probably fine then.
I tend not to push changes for weeks or sometimes months, and my commit message is basically that I forgot everything I actually changed. Also, my commit messages are terrible.
I keep one big text file full of notes, comments and old code pasted in. My source code itself tends not to be commented well as a result.