3 ms·
That's an excellent idea. I should go add that to some of my horrible, horrible C code, lest someone think that 10 levels of indentation, not using c-style stri
by TazeTSchnitzel 14y ago
That's an excellent idea. I should go add that to some of my horrible, horrible C code, lest someone think that 10 levels of indentation, not using c-style strings, non-portability, architecture assumptions, lack of error checking, and blocking sockets is a good idea...
Or that macros without bounds checking that cause segfaults unless debugging is a good idea...
What was I thinking?
- renownedmedia 14y agoHeh, I'm not well versed in C, but it sounds scary. You can also throw comments in the code where the bad stuff is so that it has more visibility, as well as suggestions for how to better solve the problem. Sometimes people learn best from bad code!
- TazeTSchnitzel 14y agoGood idea. It should sound scary, it's the worst code I've ever written. I wrote it 2 years ago with the idea "working first, correct later", but I haven't finished the latter yet...