5 ms·
I'm nitpicking, but actually any C or C++ program can be written in one line, but otherwise it's a great experiment.
by agazso 16y ago
I'm nitpicking, but actually any C or C++ program can be written in one line, but otherwise it's a great experiment.
- mihaifx 16y agoThe point is to write a read-able instruction per line. He follows this with a few exceptions.
- pmiller2 16y agoI threatened to do this in an introductory undergrad systems programming course I had to take to satisfy a degree requirement in spite of it being way below my level of proficiency. Fortunately for my grade and the grader's sanity, I chose not to do it.
- scott_s 16y agoIf your grader was aware of the indent program, it wouldn't be an issue.
- swolchok 16y agoGraders at the University of Michigan are willfully unaware of it because we want students to have some coding style. You'd be surprised how many have to be repeatedly slapped around until they get a real programmer's editor instead of trying to use gedit without configuring it.