3 ms·
Agreed. Even literate programming (where the comments often outweigh the code) doesn't stop to explain #include <stdlib.h> ! Edit: ok I forgot this was his fir
by sp332 15y ago
Agreed. Even literate programming (where the comments often outweigh the code) doesn't stop to explain #include <stdlib.h> !
Edit: ok I forgot this was his first C program.
- tptacek 15y agoNo, but you can see from that page that if you wanted to write a simple C program as a document on how C works that the format works nicely for it. It's his first C program. Mine were similarly prolix. Another habit I got out of after a year or so was wrapping every use of every new API in a me-friendly wrapper function. Also, of writing my own linked list code over and over again.