32 points · by djoldman · 4y ago · 6 comments
1. Pseudocode should be typeable in an email.
2. You should be able to write pseudocode on a whiteboard without worrying about syntax.
3. Pseudocode should be loose enough that it suggests a domain-specific language that it might inspire.
4. If your pseudocode requires a mechanism for comments, you’ve lost the plot. In their example, they comment ‘v1’ as ‘variable holding candidate 1’s tally’. Then name it that! ‘tally_can1’ would be much better.
How would they write the pseudocode for a linked list?