2 ms·
Sometimes you don't want to write the code "well enough" either, e.g. if you're reifying a standard algorithm I think it's a better idea to directly transcribe
by masklinn 13y ago
Sometimes you don't want to write the code "well enough" either, e.g. if you're reifying a standard algorithm I think it's a better idea to directly transcribe the original paper if possible, and stick as close to it as possible (including the usually dreadful naming conventions).
And in that case I usually add the paper's pseudocode above the corresponding transcription as well to make the mapping even clearer.