3 ms·
I do sometimes use psuedocode, especially to either work out for myself a complicated algorithm or help provide additional documentation for readers. However on
by randombit 17y ago
I do sometimes use psuedocode, especially to either work out for myself a complicated algorithm or help provide additional documentation for readers. However one key difference is instead of unstructured natural language, I use Python or Scheme - this is beneficial for me, because it forces me to concretely express what I am trying to do, instead of hand waving, and for a future reader, who will probably have an easier time unambiguously parsing a real language instead of random half-sentences. And it is often succinct - it is amazing and amusing how often (the gist of) hundreds of lines of optimized C/C++ can be expressed in a line or three of Python.